]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
afs: Make dynamic root population wait uninterruptibly for proc_cells_lock
authorDavid Howells <dhowells@redhat.com>
Thu, 9 May 2019 08:17:08 +0000 (09:17 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 May 2019 15:25:21 +0000 (16:25 +0100)
Make dynamic root population wait uninterruptibly for proc_cells_lock.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/dynroot.c

index 07484b5a3bbb837e1b2b58402e7e593d3b4db68e..af1689d1f32e7e699e1ecd13e4b7f84443a0c4a6 100644 (file)
@@ -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) {