diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-10-12 12:04:48 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-07 15:42:32 -0500 |
commit | 3c7741567b8188f55e3704e56bed96460bf8d396 (patch) | |
tree | dadf315062613bf21131e359c1201cdf39f14a78 /block/blk-wbt.c | |
parent | 771a93c489bf486b957c7399f89ee06d43ba2d93 (diff) |
blk-wbt: kill check for legacy queue type
Everything is blk-mq at this point, so it doesn't make any sense
to have this option available as it does nothing.
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-wbt.c')
-rw-r--r-- | block/blk-wbt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 8ac93fcbaa2e..0fc222d4194b 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c | |||
@@ -709,8 +709,7 @@ void wbt_enable_default(struct request_queue *q) | |||
709 | if (!test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags)) | 709 | if (!test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags)) |
710 | return; | 710 | return; |
711 | 711 | ||
712 | if ((q->mq_ops && IS_ENABLED(CONFIG_BLK_WBT_MQ)) || | 712 | if (q->mq_ops && IS_ENABLED(CONFIG_BLK_WBT_MQ)) |
713 | (q->request_fn && IS_ENABLED(CONFIG_BLK_WBT_SQ))) | ||
714 | wbt_init(q); | 713 | wbt_init(q); |
715 | } | 714 | } |
716 | EXPORT_SYMBOL_GPL(wbt_enable_default); | 715 | EXPORT_SYMBOL_GPL(wbt_enable_default); |