mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
pNFS: Fix RCU lock leakage
Another brown paper bag moment. pnfs_alloc_ds_commits_list() is leaking
the RCU lock.
Fixes: a9901899b6
("pNFS: Add infrastructure for cleaning up per-layout commit structures")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
93ce4af774
commit
27d231c0c6
1 changed files with 1 additions and 0 deletions
|
@ -501,6 +501,7 @@ pnfs_alloc_ds_commits_list(struct list_head *list,
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
pnfs_put_commit_array(array, cinfo->inode);
|
pnfs_put_commit_array(array, cinfo->inode);
|
||||||
}
|
}
|
||||||
|
rcu_read_unlock();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue