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
08f9788a
Commit
08f9788a
authored
Jul 28, 2002
by
Jens Axboe
Committed by
Linus Torvalds
Jul 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix REQ_QUEUED clearing in blk_insert_request()
parent
f6c2354a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
drivers/block/ll_rw_blk.c
drivers/block/ll_rw_blk.c
+7
-4
No files found.
drivers/block/ll_rw_blk.c
View file @
08f9788a
...
...
@@ -1253,7 +1253,7 @@ struct request *__blk_get_request(request_queue_t *q, int rw)
* host that is unable to accept a particular command.
*/
void
blk_insert_request
(
request_queue_t
*
q
,
struct
request
*
rq
,
int
at_head
,
void
*
data
)
int
at_head
,
void
*
data
)
{
unsigned
long
flags
;
...
...
@@ -1262,15 +1262,18 @@ void blk_insert_request(request_queue_t *q, struct request *rq,
* must not attempt merges on this) and that it acts as a soft
* barrier
*/
rq
->
flags
&=
REQ_QUEUED
;
rq
->
flags
|=
REQ_SPECIAL
|
REQ_BARRIER
;
rq
->
special
=
data
;
spin_lock_irqsave
(
q
->
queue_lock
,
flags
);
/* If command is tagged, release the tag */
if
(
blk_rq_tagged
(
rq
))
/*
* If command is tagged, release the tag
*/
if
(
blk_rq_tagged
(
rq
))
blk_queue_end_tag
(
q
,
rq
);
_elv_add_request
(
q
,
rq
,
!
at_head
,
0
);
q
->
request_fn
(
q
);
spin_unlock_irqrestore
(
q
->
queue_lock
,
flags
);
...
...
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