diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-01-26 12:46:20 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-03-01 09:12:16 -0500 |
commit | 112bdd597d7824843459e2cde37bf2abab7cdfde (patch) | |
tree | 72a1a68ca4aab7173fea5137aef345d1288c541c | |
parent | 627fb183024066f044de05987d84597fb90ce1ab (diff) | |
download | lwn-112bdd597d7824843459e2cde37bf2abab7cdfde.tar.gz lwn-112bdd597d7824843459e2cde37bf2abab7cdfde.zip |
NFSD: Replace comment with lockdep assertion
Convert a code comment into a real assertion.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
-rw-r--r-- | fs/nfsd/nfs4callback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 45a31f051595..d73c66fa131d 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -1315,12 +1315,13 @@ void nfsd4_shutdown_callback(struct nfs4_client *clp) nfsd41_cb_inflight_wait_complete(clp); } -/* requires cl_lock: */ static struct nfsd4_conn * __nfsd4_find_backchannel(struct nfs4_client *clp) { struct nfsd4_session *s; struct nfsd4_conn *c; + lockdep_assert_held(&clp->cl_lock); + list_for_each_entry(s, &clp->cl_sessions, se_perclnt) { list_for_each_entry(c, &s->se_conns, cn_persession) { if (c->cn_flags & NFS4_CDFC4_BACK) |