]> www.infradead.org Git - users/dwmw2/linux.git/commit
nfsd: make nfsd4_run_cb a bool return function
authorJeff Layton <jlayton@kernel.org>
Mon, 26 Sep 2022 18:41:01 +0000 (14:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:19 +0000 (16:19 +0200)
commite55378bce5f602acc3e1e43bcc5bcf09d9c2104a
tree37a1ea64663eb91b5b68ba91b53bd9f144b10eba
parentf6279fa0dc9d37bce777122044ef3fb2001bcb89
nfsd: make nfsd4_run_cb a bool return function

[ Upstream commit b95239ca4954a0d48b19c09ce7e8f31b453b4216 ]

queue_work can return false and not queue anything, if the work is
already queued. If that happens in the case of a CB_RECALL, we'll have
taken an extra reference to the stid that will never be put. Ensure we
throw a warning in that case.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4state.c
fs/nfsd/state.h