Commit 22a79192 authored by Al Viro's avatar Al Viro
Browse files

finish_automount() doesn't need vfsmount_lock for removal from expiry list


Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 085e83ff
......@@ -2064,9 +2064,7 @@ fail:
/* remove m from any expiration list it may be on */
if (!list_empty(&mnt->mnt_expire)) {
namespace_lock();
br_write_lock(&vfsmount_lock);
list_del_init(&mnt->mnt_expire);
br_write_unlock(&vfsmount_lock);
namespace_unlock();
}
mntput(m);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment