Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ad9b568a
Commit
ad9b568a
authored
Nov 05, 2003
by
Jan Kara
Committed by
Linus Torvalds
Nov 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Drop spin lock when calling request_module in quota code
From Herbert Xu
parent
95450709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
fs/dquot.c
fs/dquot.c
+6
-5
No files found.
fs/dquot.c
View file @
ad9b568a
...
...
@@ -128,16 +128,17 @@ static struct quota_format_type *find_quota_format(int id)
if
(
!
actqf
||
!
try_module_get
(
actqf
->
qf_owner
))
{
int
qm
;
spin_unlock
(
&
dq_list_lock
);
for
(
qm
=
0
;
module_names
[
qm
].
qm_fmt_id
&&
module_names
[
qm
].
qm_fmt_id
!=
id
;
qm
++
);
if
(
!
module_names
[
qm
].
qm_fmt_id
||
request_module
(
module_names
[
qm
].
qm_mod_name
))
{
actqf
=
NULL
;
goto
out
;
}
if
(
!
module_names
[
qm
].
qm_fmt_id
||
request_module
(
module_names
[
qm
].
qm_mod_name
))
return
NULL
;
spin_lock
(
&
dq_list_lock
);
for
(
actqf
=
quota_formats
;
actqf
&&
actqf
->
qf_fmt_id
!=
id
;
actqf
=
actqf
->
qf_next
);
if
(
actqf
&&
!
try_module_get
(
actqf
->
qf_owner
))
actqf
=
NULL
;
}
out:
spin_unlock
(
&
dq_list_lock
);
return
actqf
;
}
...
...
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