|
@@ -358,7 +358,7 @@ void blk_mq_sched_insert_request(struct request *rq, bool at_head,
|
|
|
struct blk_mq_ctx *ctx = rq->mq_ctx;
|
|
struct blk_mq_ctx *ctx = rq->mq_ctx;
|
|
|
struct blk_mq_hw_ctx *hctx = blk_mq_map_queue(q, ctx->cpu);
|
|
struct blk_mq_hw_ctx *hctx = blk_mq_map_queue(q, ctx->cpu);
|
|
|
|
|
|
|
|
- if (rq->tag == -1 && (rq->cmd_flags & (REQ_PREFLUSH | REQ_FUA))) {
|
|
|
|
|
|
|
+ if (rq->tag == -1 && op_is_flush(rq->cmd_flags)) {
|
|
|
blk_mq_sched_insert_flush(hctx, rq, can_block);
|
|
blk_mq_sched_insert_flush(hctx, rq, can_block);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|