diff options
author | Tejun Heo <htejun@gmail.com> | 2006-02-05 02:27:38 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-05 14:06:51 -0500 |
commit | 238e7db9357bfe1ce3d6f7ac1e60e595e9d46b7b (patch) | |
tree | 3688c8145e4bfa61a387137dafc966470569d2b8 /block/elevator.c | |
parent | 9a7a67af8bb02106f0fb01dd9d237332f874be9a (diff) |
[PATCH] block: request_queue->ordcolor must not be flipped on SOFTBARRIER
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>
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/elevator.c b/block/elevator.c index 96a61e029ce5..2fc269f69726 100644 --- 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, | |||
323 | /* | 323 | /* |
324 | * toggle ordered color | 324 | * toggle ordered color |
325 | */ | 325 | */ |
326 | q->ordcolor ^= 1; | 326 | if (blk_barrier_rq(rq)) |
327 | q->ordcolor ^= 1; | ||
327 | 328 | ||
328 | /* | 329 | /* |
329 | * barriers implicitly indicate back insertion | 330 | * barriers implicitly indicate back insertion |