summaryrefslogtreecommitdiffstats
path: root/block/blk-wbt.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2022-10-19 14:15:14 +0200
committerJens Axboe <axboe@kernel.dk>2022-10-24 02:59:17 +0200
commitb11d31ae01e6b0762b28e645ad6718a12faa8d14 (patch)
treeda25c2521a697e192aa2b5f8755ce788d9c79790 /block/blk-wbt.c
parentelevator: remove redundant code in elv_unregister_queue() (diff)
downloadlinux-b11d31ae01e6b0762b28e645ad6718a12faa8d14.tar.xz
linux-b11d31ae01e6b0762b28e645ad6718a12faa8d14.zip
blk-wbt: remove unnecessary check in wbt_enable_default()
If CONFIG_BLK_WBT_MQ is disabled, wbt_init() won't do anything. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20221019121518.3865235-3-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-wbt.c')
-rw-r--r--block/blk-wbt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-wbt.c b/block/blk-wbt.c
index c293e08b301f..c5a8c10028a0 100644
--- a/block/blk-wbt.c
+++ b/block/blk-wbt.c
@@ -651,7 +651,7 @@ void wbt_enable_default(struct request_queue *q)
if (!blk_queue_registered(q))
return;
- if (queue_is_mq(q) && IS_ENABLED(CONFIG_BLK_WBT_MQ))
+ if (queue_is_mq(q))
wbt_init(q);
}
EXPORT_SYMBOL_GPL(wbt_enable_default);