diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-05-22 15:18:54 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-05-23 20:08:53 +0300 |
commit | 8a2b20a997a3779ae9fcae268f2959eb82ec05a1 (patch) | |
tree | 955fb3317a0627be1bf0b2c14833aedc4488476e /block/blk-mq-tag.c | |
parent | e3afec91aad23c52dfe426c7d7128e4839c3eed8 (diff) | |
download | linux-8a2b20a997a3779ae9fcae268f2959eb82ec05a1.tar.xz |
blk-wbt: fix that wbt can't be disabled by default
commit b11d31ae01e6 ("blk-wbt: remove unnecessary check in
wbt_enable_default()") removes the checking of CONFIG_BLK_WBT_MQ by
mistake, which is used to control enable or disable wbt by default.
Fix the problem by adding back the checking. This patch also do a litter
cleanup to make related code more readable.
Fixes: b11d31ae01e6 ("blk-wbt: remove unnecessary check in wbt_enable_default()")
Reported-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Link: https://lore.kernel.org/lkml/CAKXUXMzfKq_J9nKHGyr5P5rvUETY4B-fxoQD4sO+NYjFOfVtZA@mail.gmail.com/t/
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230522121854.2928880-1-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-tag.c')
0 files changed, 0 insertions, 0 deletions