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
nexedi
linux
Commits
c981ff9f
Commit
c981ff9f
authored
Mar 18, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix locking in queue_requests_store()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
8669aafd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
block/ll_rw_blk.c
block/ll_rw_blk.c
+7
-3
No files found.
block/ll_rw_blk.c
View file @
c981ff9f
...
...
@@ -3614,10 +3614,13 @@ static ssize_t
queue_requests_store
(
struct
request_queue
*
q
,
const
char
*
page
,
size_t
count
)
{
struct
request_list
*
rl
=
&
q
->
rq
;
unsigned
long
nr
;
int
ret
=
queue_var_store
(
&
nr
,
page
,
count
);
if
(
nr
<
BLKDEV_MIN_RQ
)
nr
=
BLKDEV_MIN_RQ
;
int
ret
=
queue_var_store
(
&
q
->
nr_requests
,
page
,
count
);
if
(
q
->
nr_requests
<
BLKDEV_MIN_RQ
)
q
->
nr_requests
=
BLKDEV_MIN_RQ
;
spin_lock_irq
(
q
->
queue_lock
);
q
->
nr_requests
=
nr
;
blk_queue_congestion_threshold
(
q
);
if
(
rl
->
count
[
READ
]
>=
queue_congestion_on_threshold
(
q
))
...
...
@@ -3643,6 +3646,7 @@ queue_requests_store(struct request_queue *q, const char *page, size_t count)
blk_clear_queue_full
(
q
,
WRITE
);
wake_up
(
&
rl
->
wait
[
WRITE
]);
}
spin_unlock_irq
(
q
->
queue_lock
);
return
ret
;
}
...
...
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