]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:10 +0000 (16:19 +0200)
[ Upstream commit f53cef15dddec7203df702cdc62e554190385450 ]

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 2d013a88e3565e29ecdea6a6db031424709f3d85..6a01de86779597af7fb7e5ac2e8469563af02084 100644 (file)
@@ -299,8 +299,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;