projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d9f4cf
)
blk-wbt: remove unnecessary check in wbt_enable_default()
author
Yu Kuai
<yukuai3@huawei.com>
Wed, 19 Oct 2022 12:15:14 +0000
(20:15 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 24 Oct 2022 00:59:17 +0000
(18:59 -0600)
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>
block/blk-wbt.c
patch
|
blob
|
history
diff --git
a/block/blk-wbt.c
b/block/blk-wbt.c
index c293e08b301ff6610c77262f7ccb259e4749c062..c5a8c10028a082da334742ec4c1e9fbf096f63a5 100644
(file)
--- 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);