Skip to content

Commit 27d231c

Browse files
author
Trond Myklebust
committed
pNFS: Fix RCU lock leakage
Another brown paper bag moment. pnfs_alloc_ds_commits_list() is leaking the RCU lock. Fixes: a990189 ("pNFS: Add infrastructure for cleaning up per-layout commit structures") Signed-off-by: Trond Myklebust <[email protected]>
1 parent 93ce4af commit 27d231c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfs/pnfs_nfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ pnfs_alloc_ds_commits_list(struct list_head *list,
501501
rcu_read_lock();
502502
pnfs_put_commit_array(array, cinfo->inode);
503503
}
504+
rcu_read_unlock();
504505
return ret;
505506
}
506507

0 commit comments

Comments
 (0)