NFS: Fix a lock imbalance typo in nfs_access_cache_shrinker
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 26 May 2010 12:42:24 +0000 (08:42 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 26 May 2010 12:43:51 +0000 (08:43 -0400)
Commit 9c7e7e23371e629dbb3b341610a418cdf1c19d91 (NFS: Don't call iput() in
nfs_access_cache_shrinker) unintentionally removed the spin unlock for the
inode->i_lock.

Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c

index ee9a179..db64854 100644 (file)
@@ -1741,6 +1741,7 @@ remove_lru_entry:
                        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);