OSDN Git Service

blk-wbt: kill check for legacy queue type
authorJens Axboe <axboe@kernel.dk>
Fri, 12 Oct 2018 16:04:48 +0000 (10:04 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:42:32 +0000 (13:42 -0700)
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>
block/Kconfig
block/blk-wbt.c

index f7045aa..8044452 100644 (file)
@@ -155,12 +155,6 @@ config BLK_CGROUP_IOLATENCY
 
        Note, this is an experimental interface and could be changed someday.
 
-config BLK_WBT_SQ
-       bool "Single queue writeback throttling"
-       depends on BLK_WBT
-       ---help---
-       Enable writeback throttling by default on legacy single queue devices
-
 config BLK_WBT_MQ
        bool "Multiqueue writeback throttling"
        default y
index 8ac93fc..0fc222d 100644 (file)
@@ -709,8 +709,7 @@ void wbt_enable_default(struct request_queue *q)
        if (!test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags))
                return;
 
-       if ((q->mq_ops && IS_ENABLED(CONFIG_BLK_WBT_MQ)) ||
-           (q->request_fn && IS_ENABLED(CONFIG_BLK_WBT_SQ)))
+       if (q->mq_ops && IS_ENABLED(CONFIG_BLK_WBT_MQ))
                wbt_init(q);
 }
 EXPORT_SYMBOL_GPL(wbt_enable_default);