summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-05-09 09:17:08 +0100
committerDavid Howells <dhowells@redhat.com>2019-05-16 16:25:21 +0100
commit3b05e528cb9ef1c7b251705acca46d8deb80183c (patch)
tree3b7bcd89216e621cf688653c43eeb7ee88159d24
parent20b8391fff56f64893233a772a81adc392a69121 (diff)
downloadlinux-3b05e528cb9ef1c7b251705acca46d8deb80183c.tar.bz2
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>
-rw-r--r--fs/afs/dynroot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/afs/dynroot.c b/fs/afs/dynroot.c
index 07484b5a3bbb..af1689d1f32e 100644
--- a/fs/afs/dynroot.c
+++ b/fs/afs/dynroot.c
@@ -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) {