projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a7a67a
)
[PATCH] block: request_queue->ordcolor must not be flipped on SOFTBARRIER
author
Tejun Heo
<htejun@gmail.com>
Sun, 5 Feb 2006 07:27:38 +0000
(23:27 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 5 Feb 2006 19:06:51 +0000
(11:06 -0800)
q->ordcolor must not be flipped on SOFTBARRIER.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
block/elevator.c
patch
|
blob
|
history
diff --git
a/block/elevator.c
b/block/elevator.c
index
96a61e0
..
2fc269f
100644
(file)
--- a/
block/elevator.c
+++ b/
block/elevator.c
@@
-323,7
+323,8
@@
void __elv_add_request(request_queue_t *q, struct request *rq, int where,
/*
* toggle ordered color
*/
- q->ordcolor ^= 1;
+ if (blk_barrier_rq(rq))
+ q->ordcolor ^= 1;
/*
* barriers implicitly indicate back insertion