Skip to content

Commit

Permalink
BKL: Remove BKL from do_new_mount()
Browse files Browse the repository at this point in the history
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: Jan Blunck <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
jblunck authored and arndb committed Oct 4, 2010
1 parent 38d018d commit 6841c05
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6841c05

Please sign in to comment.