Commit 112bdd59 authored by Chuck Lever's avatar Chuck Lever

NFSD: Replace comment with lockdep assertion

Convert a code comment into a real assertion.
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Reviewed-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 627fb183
...@@ -1315,12 +1315,13 @@ void nfsd4_shutdown_callback(struct nfs4_client *clp) ...@@ -1315,12 +1315,13 @@ void nfsd4_shutdown_callback(struct nfs4_client *clp)
nfsd41_cb_inflight_wait_complete(clp); nfsd41_cb_inflight_wait_complete(clp);
} }
/* requires cl_lock: */
static struct nfsd4_conn * __nfsd4_find_backchannel(struct nfs4_client *clp) static struct nfsd4_conn * __nfsd4_find_backchannel(struct nfs4_client *clp)
{ {
struct nfsd4_session *s; struct nfsd4_session *s;
struct nfsd4_conn *c; struct nfsd4_conn *c;
lockdep_assert_held(&clp->cl_lock);
list_for_each_entry(s, &clp->cl_sessions, se_perclnt) { list_for_each_entry(s, &clp->cl_sessions, se_perclnt) {
list_for_each_entry(c, &s->se_conns, cn_persession) { list_for_each_entry(c, &s->se_conns, cn_persession) {
if (c->cn_flags & NFS4_CDFC4_BACK) if (c->cn_flags & NFS4_CDFC4_BACK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment