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)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Sep 2022 18:50:57 +0000 (14:50 -0400)
commitb95239ca4954a0d48b19c09ce7e8f31b453b4216
treef675a2b66ad391f8dbe42c4f1516e1b54a6a1151
parent25fbe1fca14142beae6c882f7906510363d42bff
nfsd: make nfsd4_run_cb a bool return function

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