Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
7f78d4cd
Commit
7f78d4cd
authored
May 08, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push BKL down beyond VFS-only parts of do_mount()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6fac98dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
fs/namespace.c
fs/namespace.c
+6
-3
No files found.
fs/namespace.c
View file @
7f78d4cd
...
...
@@ -1515,8 +1515,11 @@ static int do_remount(struct path *path, int flags, int mnt_flags,
down_write
(
&
sb
->
s_umount
);
if
(
flags
&
MS_BIND
)
err
=
change_mount_flags
(
path
->
mnt
,
flags
);
else
else
{
lock_kernel
();
err
=
do_remount_sb
(
sb
,
flags
,
data
,
0
);
unlock_kernel
();
}
if
(
!
err
)
path
->
mnt
->
mnt_flags
=
mnt_flags
;
up_write
(
&
sb
->
s_umount
);
...
...
@@ -1630,7 +1633,9 @@ 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
);
...
...
@@ -1921,7 +1926,6 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
if
(
retval
)
goto
dput_out
;
lock_kernel
();
if
(
flags
&
MS_REMOUNT
)
retval
=
do_remount
(
&
path
,
flags
&
~
MS_REMOUNT
,
mnt_flags
,
data_page
);
...
...
@@ -1934,7 +1938,6 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
else
retval
=
do_new_mount
(
&
path
,
type_page
,
flags
,
mnt_flags
,
dev_name
,
data_page
);
unlock_kernel
();
dput_out:
path_put
(
&
path
);
return
retval
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment