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:
@@ -261,8 +261,7 @@ int afs_dynroot_populate(struct super_block *sb)
|
|||||||
struct afs_net *net = afs_sb2net(sb);
|
struct afs_net *net = afs_sb2net(sb);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (mutex_lock_interruptible(&net->proc_cells_lock) < 0)
|
mutex_lock(&net->proc_cells_lock);
|
||||||
return -ERESTARTSYS;
|
|
||||||
|
|
||||||
net->dynroot_sb = sb;
|
net->dynroot_sb = sb;
|
||||||
hlist_for_each_entry(cell, &net->proc_cells, proc_link) {
|
hlist_for_each_entry(cell, &net->proc_cells, proc_link) {
|
||||||
|
Reference in New Issue
Block a user