diff options
author | Li Nan <linan122@huawei.com> | 2023-06-13 04:33:32 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-06-17 01:24:13 +0300 |
commit | 526d10061bc29b314cc41f3b8322606df9172f14 (patch) | |
tree | 7a2478c5e856ea145f8f86113aaed4bc8293c385 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e118029cb7605a89bf334a83023fc0c102420954 (diff) | |
download | linux-526d10061bc29b314cc41f3b8322606df9172f14.tar.xz |
dm: support turning off block-core's io stats accounting
Commit bc58ba9468d9 ("block: add sysfs file for controlling io stats
accounting") allowed users to turn off disk stat accounting completely
by checking if queue flag QUEUE_FLAG_IO_STAT is set. In dm, this flag
is neither set nor checked: so block-core's io stats are continuously
counted and cannot be turned off.
Add support for turning off block-core's io stats accounting for dm.
Set QUEUE_FLAG_IO_STAT for dm's request_queue. If QUEUE_FLAG_IO_STAT
is set when an io starts, record the need for block core's io stats by
setting the DM_IO_BLK_STAT dm_io flag to avoid io stats being disabled
in the middle of the io.
DM statistics (dm-stats) is independent of block-core's io stats and
remains unchanged.
Signed-off-by: Li Nan <linan122@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions