diff options
-rw-r--r-- | block/blk-core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 59b5c00c0126..64e96ee1d6af 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -2702,7 +2702,10 @@ static void flush_plug_list(struct blk_plug *plug) | |||
2702 | /* | 2702 | /* |
2703 | * rq is already accounted, so use raw insert | 2703 | * rq is already accounted, so use raw insert |
2704 | */ | 2704 | */ |
2705 | __elv_add_request(q, rq, ELEVATOR_INSERT_SORT_MERGE); | 2705 | if (rq->cmd_flags & (REQ_FLUSH | REQ_FUA)) |
2706 | __elv_add_request(q, rq, ELEVATOR_INSERT_FLUSH); | ||
2707 | else | ||
2708 | __elv_add_request(q, rq, ELEVATOR_INSERT_SORT_MERGE); | ||
2706 | } | 2709 | } |
2707 | 2710 | ||
2708 | if (q) { | 2711 | if (q) { |