]> Git Repo - linux.git/blobdiff - fs/nfs/dir.c
NFSv4: Clean up _nfs4_proc_open()
[linux.git] / fs / nfs / dir.c
index 0f41678fd7ee651aa9b2ecda68ccb90deb58a751..322141f4ab4810f5230898c2f1773e5290476242 100644 (file)
@@ -1743,8 +1743,8 @@ int nfs_access_cache_shrinker(int nr_to_scan, gfp_t gfp_mask)
        struct nfs_inode *nfsi;
        struct nfs_access_entry *cache;
 
-       spin_lock(&nfs_access_lru_lock);
 restart:
+       spin_lock(&nfs_access_lru_lock);
        list_for_each_entry(nfsi, &nfs_access_lru_list, access_cache_inode_lru) {
                struct inode *inode;
 
@@ -1769,6 +1769,7 @@ remove_lru_entry:
                        clear_bit(NFS_INO_ACL_LRU_SET, &nfsi->flags);
                }
                spin_unlock(&inode->i_lock);
+               spin_unlock(&nfs_access_lru_lock);
                iput(inode);
                goto restart;
        }
This page took 0.03082 seconds and 4 git commands to generate.