summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-04-12 19:39:47 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-12 19:39:47 +0300
commit50bda5faa6251da85e82db234372f1fc1c69a9d2 (patch)
treeadd02c03b6121c0a5b01dc23c07e89a485564ce5 /fs/nfs
parentb032227c62939b5481bcd45442b36dfa263f4a7c (diff)
parent27d231c0c63bb619997a24bab85d54d90ca71110 (diff)
downloadlinux-50bda5faa6251da85e82db234372f1fc1c69a9d2.tar.xz
Merge tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Pull NFS client bugfix from Trond Myklebust: "Fix an RCU read lock leakage in pnfs_alloc_ds_commits_list()" * tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: pNFS: Fix RCU lock leakage
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;
}