Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2064,9 +2064,7 @@ int finish_automount(struct vfsmount *m, struct path *path)
	/* 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);