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>
Sat, 21 Dec 2019 09:41:13 +0000 (10:41 +0100)
commit8643e7f6febbdbaddb198324e95a44143c7209f7
tree4640ab6f42206ae76de12f682cf3f521a4d90ec7
parent96120db99f56528a4a7ab32ba13c77d1e4d86aef
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