diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-31 10:57:29 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-31 16:00:34 -0500 |
commit | 57292b58ddb58689e8c3b4c6eadbef10d9ca44dd (patch) | |
tree | dd6e5af538b2f2684d2090781f668c7099a0455e /block/mq-deadline.c | |
parent | 09fc54ccc42744669e748434af5c2f8adcad900f (diff) |
block: introduce blk_rq_is_passthrough
This can be used to check for fs vs non-fs requests and basically
removes all knowledge of BLOCK_PC specific from the block layer,
as well as preparing for removing the cmd_type field in struct request.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/mq-deadline.c')
-rw-r--r-- | block/mq-deadline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/mq-deadline.c b/block/mq-deadline.c index d93ec713fa62..49583536698c 100644 --- a/block/mq-deadline.c +++ b/block/mq-deadline.c | |||
@@ -398,7 +398,7 @@ static void dd_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq, | |||
398 | if (blk_mq_sched_bypass_insert(hctx, rq)) | 398 | if (blk_mq_sched_bypass_insert(hctx, rq)) |
399 | return; | 399 | return; |
400 | 400 | ||
401 | if (at_head || rq->cmd_type != REQ_TYPE_FS) { | 401 | if (at_head || blk_rq_is_passthrough(rq)) { |
402 | if (at_head) | 402 | if (at_head) |
403 | list_add(&rq->queuelist, &dd->dispatch); | 403 | list_add(&rq->queuelist, &dd->dispatch); |
404 | else | 404 | else |