summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2020-04-11 17:37:18 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2020-04-11 17:42:35 +0200
commit27d231c0c63bb619997a24bab85d54d90ca71110 (patch)
tree518dcc0dc20f9eaf042341b073671283af124831 /fs/nfs
parentNFS: Clean up process of marking inode stale. (diff)
downloadlinux-27d231c0c63bb619997a24bab85d54d90ca71110.tar.xz
linux-27d231c0c63bb619997a24bab85d54d90ca71110.zip
pNFS: Fix RCU lock leakage
Another brown paper bag moment. pnfs_alloc_ds_commits_list() is leaking the RCU lock. Fixes: a9901899b649 ("pNFS: Add infrastructure for cleaning up per-layout commit structures") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/pnfs_nfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs_nfs.c b/fs/nfs/pnfs_nfs.c
index 25f135572fc8..e7ddbce48321 100644
--- a/fs/nfs/pnfs_nfs.c
+++ b/fs/nfs/pnfs_nfs.c
@@ -501,6 +501,7 @@ pnfs_alloc_ds_commits_list(struct list_head *list,
rcu_read_lock();
pnfs_put_commit_array(array, cinfo->inode);
}
+ rcu_read_unlock();
return ret;
}