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
443b94ba
Commit
443b94ba
authored
May 05, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that all callers of remount hold s_umount exclusive
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
5af7926f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/super.c
fs/super.c
+3
-2
No files found.
fs/super.c
View file @
443b94ba
...
...
@@ -579,7 +579,7 @@ static void do_emergency_remount(struct work_struct *work)
list_for_each_entry
(
sb
,
&
super_blocks
,
s_list
)
{
sb
->
s_count
++
;
spin_unlock
(
&
sb_lock
);
down_
read
(
&
sb
->
s_umount
);
down_
write
(
&
sb
->
s_umount
);
if
(
sb
->
s_root
&&
sb
->
s_bdev
&&
!
(
sb
->
s_flags
&
MS_RDONLY
))
{
/*
* ->remount_fs needs lock_kernel().
...
...
@@ -590,7 +590,8 @@ static void do_emergency_remount(struct work_struct *work)
do_remount_sb
(
sb
,
MS_RDONLY
,
NULL
,
1
);
unlock_kernel
();
}
drop_super
(
sb
);
up_write
(
&
sb
->
s_umount
);
put_super
(
sb
);
spin_lock
(
&
sb_lock
);
}
spin_unlock
(
&
sb_lock
);
...
...
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