OSDN Git Service

nfsd: fix a warning in __cld_pipe_upcall()
authorScott Mayhew <smayhew@redhat.com>
Tue, 6 Nov 2018 18:35:08 +0000 (13:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:52:09 +0000 (08:52 +0100)
commit3ff6af8e0a6ad7526789808a6b2867fce16331a2
tree9d0bc087f274286c6e3b541e8fab9a4df8fb1a06
parenta57b3ecc06d4dbc3b327a98a6ce5e432112e1f95
nfsd: fix a warning in __cld_pipe_upcall()

[ Upstream commit b493fd31c0b89d9453917e977002de58bebc3802 ]

__cld_pipe_upcall() emits a "do not call blocking ops when
!TASK_RUNNING" warning due to the dput() call in rpc_queue_upcall().
Fix it by using a completion instead of hand coding the wait.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/nfs4recover.c