projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ce4af
)
pNFS: Fix RCU lock leakage
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Sat, 11 Apr 2020 15:37:18 +0000
(11:37 -0400)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Sat, 11 Apr 2020 15:42:35 +0000
(11:42 -0400)
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>
fs/nfs/pnfs_nfs.c
patch
|
blob
|
history
diff --git
a/fs/nfs/pnfs_nfs.c
b/fs/nfs/pnfs_nfs.c
index 25f135572fc8b409983425a739ed66e30f8d981a..e7ddbce48321dfcba588eba56e6f3495cf65226f 100644
(file)
--- 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;
}