diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-05-27 09:06:40 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-26 09:53:36 -0600 |
commit | 645a829e03384a235b3760959d4ebe420a0f2027 (patch) | |
tree | bee82941f88b81d28568d96fd2b26bfd9a6207d2 /block/blk-rq-qos.c | |
parent | c6b7a3a26e809c9d2a51ae303764c1d2994f31cf (diff) | |
download | linux-645a829e03384a235b3760959d4ebe420a0f2027.tar.gz linux-645a829e03384a235b3760959d4ebe420a0f2027.tar.bz2 linux-645a829e03384a235b3760959d4ebe420a0f2027.zip |
blk-wbt: don't create wbt sysfs entry if CONFIG_BLK_WBT is disabled
sysfs entry /sys/block/[device]/queue/wbt_lat_usec will be created even
if CONFIG_BLK_WBT is disabled, while read and write will always fail.
It doesn't make sense to create a sysfs entry that can't be accessed,
so don't create such entry.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230527010644.647900-2-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-rq-qos.c')
0 files changed, 0 insertions, 0 deletions