NFSD: Remove lockdep assertion from unhash_and_release_locked()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 8 Jul 2022 18:25:44 +0000 (14:25 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 30 Jul 2022 00:11:41 +0000 (20:11 -0400)
IIUC, holding the hash bucket lock is needed only in
nfsd_file_unhash, and there is already a lockdep assertion there.

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

index 4de27c0..92e3e7d 100644 (file)
@@ -300,8 +300,6 @@ nfsd_file_unhash(struct nfsd_file *nf)
 static bool
 nfsd_file_unhash_and_release_locked(struct nfsd_file *nf, struct list_head *dispose)
 {
-       lockdep_assert_held(&nfsd_file_hashtbl[nf->nf_hashval].nfb_lock);
-
        trace_nfsd_file_unhash_and_release_locked(nf);
        if (!nfsd_file_unhash(nf))
                return false;