aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2022-10-19 20:15:16 +0800
committerJens Axboe <[email protected]>2022-10-23 18:59:17 -0600
commit3642ef4d95699193c4a461862382e643ae3720f0 (patch)
treee0a696d7266ff27dadb46349b6bde22da71ea6e1 /tools/perf/scripts/python
parenta9a236d238a5e8ab2e74ca62c2c7ba5dd435af77 (diff)
blk-wbt: don't show valid wbt_lat_usec in sysfs while wbt is disabled
Currently, if wbt is initialized and then disabled by wbt_disable_default(), sysfs will still show valid wbt_lat_usec, which will confuse users that wbt is still enabled. This patch shows wbt_lat_usec as zero if it's disabled. Signed-off-by: Yu Kuai <[email protected]> Reported-and-tested-by: Holger Hoffstätte <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions