Skip to content

Commit

Permalink
afs: Make dynamic root population wait uninterruptibly for proc_cells…
Browse files Browse the repository at this point in the history
…_lock

Make dynamic root population wait uninterruptibly for proc_cells_lock.

Signed-off-by: David Howells <[email protected]>
  • Loading branch information
dhowells committed May 16, 2019
1 parent 20b8391 commit 3b05e52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/afs/dynroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3b05e52

Please sign in to comment.