diff options
-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 |