2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

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>
This commit is contained in:
Jens Axboe 2018-10-12 10:04:48 -06:00
parent 771a93c489
commit 3c7741567b
2 changed files with 1 additions and 8 deletions

View File

@ -155,12 +155,6 @@ config BLK_CGROUP_IOLATENCY
Note, this is an experimental interface and could be changed someday. 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 config BLK_WBT_MQ
bool "Multiqueue writeback throttling" bool "Multiqueue writeback throttling"
default y default y

View File

@ -709,8 +709,7 @@ void wbt_enable_default(struct request_queue *q)
if (!test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags)) if (!test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags))
return; return;
if ((q->mq_ops && IS_ENABLED(CONFIG_BLK_WBT_MQ)) || if (q->mq_ops && IS_ENABLED(CONFIG_BLK_WBT_MQ))
(q->request_fn && IS_ENABLED(CONFIG_BLK_WBT_SQ)))
wbt_init(q); wbt_init(q);
} }
EXPORT_SYMBOL_GPL(wbt_enable_default); EXPORT_SYMBOL_GPL(wbt_enable_default);