diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-10-13 23:44:12 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-07 21:42:32 +0100 |
commit | 7e992f847a08ecda3f658ceebb39a4d8e739ba36 (patch) | |
tree | 6d72149145a4d824c0505d7623b7a1c0bb1e2581 /block/blk.h | |
parent | block: remove legacy rq tagging (diff) | |
download | linux-7e992f847a08ecda3f658ceebb39a4d8e739ba36.tar.xz linux-7e992f847a08ecda3f658ceebb39a4d8e739ba36.zip |
block: remove non mq parts from the flush code
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/block/blk.h b/block/blk.h index a1841b8ff129..57a302bf5a70 100644 --- a/block/blk.h +++ b/block/blk.h @@ -114,9 +114,7 @@ static inline void queue_flag_clear(unsigned int flag, struct request_queue *q) static inline struct blk_flush_queue *blk_get_flush_queue( struct request_queue *q, struct blk_mq_ctx *ctx) { - if (q->mq_ops) - return blk_mq_map_queue(q, ctx->cpu)->fq; - return q->fq; + return blk_mq_map_queue(q, ctx->cpu)->fq; } static inline void __blk_get_queue(struct request_queue *q) |