Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59844a9b authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix a lock imbalance typo in nfs_access_cache_shrinker



Commit 9c7e7e23 (NFS: Don't call iput() in
nfs_access_cache_shrinker) unintentionally removed the spin unlock for the
inode->i_lock.

Reported-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 0a68b0be
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1741,6 +1741,7 @@ int nfs_access_cache_shrinker(int nr_to_scan, gfp_t gfp_mask)
			clear_bit(NFS_INO_ACL_LRU_SET, &nfsi->flags);
			smp_mb__after_clear_bit();
		}
		spin_unlock(&inode->i_lock);
	}
	spin_unlock(&nfs_access_lru_lock);
	nfs_access_free_list(&head);