diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2023-04-13 08:28:05 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-13 14:48:11 +0200 |
commit | 8e15dfbd9ae21e518979e3823e335073e725f445 (patch) | |
tree | c52de30f05381d2c5e2c361ce597a91a1ef43867 /drivers/spi/spi-sprd-adi.c | |
parent | blk-stat: fix QUEUE_FLAG_STATS clear (diff) | |
download | linux-8e15dfbd9ae21e518979e3823e335073e725f445.tar.xz linux-8e15dfbd9ae21e518979e3823e335073e725f445.zip |
blk-throttle: only enable blk-stat when BLK_DEV_THROTTLING_LOW
blk_throtl_register() will unconditionally enable blk-stat for gendisk
when register, even when we have no BLK_DEV_THROTTLING_LOW config.
Since the kernel always has only BLK_DEV_THROTTLING config and the
BLK_DEV_THROTTLING_LOW config is still in EXPERIMENTAL state, we can
just skip blk-stat when !BLK_DEV_THROTTLING_LOW.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230413062805.2081970-2-chengming.zhou@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/spi/spi-sprd-adi.c')
0 files changed, 0 insertions, 0 deletions