mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
afs: Make dynamic root population wait uninterruptibly for proc_cells_lock
Make dynamic root population wait uninterruptibly for proc_cells_lock. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
20b8391fff
commit
3b05e528cb
@ -261,8 +261,7 @@ int afs_dynroot_populate(struct super_block *sb)
|
||||
struct afs_net *net = afs_sb2net(sb);
|
||||
int ret;
|
||||
|
||||
if (mutex_lock_interruptible(&net->proc_cells_lock) < 0)
|
||||
return -ERESTARTSYS;
|
||||
mutex_lock(&net->proc_cells_lock);
|
||||
|
||||
net->dynroot_sb = sb;
|
||||
hlist_for_each_entry(cell, &net->proc_cells, proc_link) {
|
||||
|
Loading…
Reference in New Issue
Block a user