summaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-05-09 10:17:08 +0200
committerDavid Howells <dhowells@redhat.com>2019-05-16 17:25:21 +0200
commit3b05e528cb9ef1c7b251705acca46d8deb80183c (patch)
tree3b7bcd89216e621cf688653c43eeb7ee88159d24 /fs/afs
parentafs: Make some RPC operations non-interruptible (diff)
downloadlinux-3b05e528cb9ef1c7b251705acca46d8deb80183c.tar.xz
linux-3b05e528cb9ef1c7b251705acca46d8deb80183c.zip
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>
Diffstat (limited to 'fs/afs')
-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) {