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

Commit 6841c050 authored by Jan Blunck's avatar Jan Blunck Committed by Arnd Bergmann
Browse files

BKL: Remove BKL from do_new_mount()



After pushing down the BKL to the get_sb/fill_super operations of the
filesystems that still make usage of the BKL it is safe to remove it from
do_new_mount().

I've read through all the code formerly covered by the BKL inside
do_kern_mount() and have satisfied myself that it doesn't need the BKL
any more.

Signed-off-by: default avatarJan Blunck <jblunck@infradead.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 38d018db
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1744,9 +1744,7 @@ static int do_new_mount(struct path *path, char *type, int flags,
	if (!capable(CAP_SYS_ADMIN))
		return -EPERM;

	lock_kernel();
	mnt = do_kern_mount(type, flags, name, data);
	unlock_kernel();
	if (IS_ERR(mnt))
		return PTR_ERR(mnt);