diff options
author | Yu Kuai <yukuai3@huawei.com> | 2025-03-25 04:57:46 +0300 |
---|---|---|
committer | Yu Kuai <yukuai3@huawei.com> | 2025-04-06 07:53:12 +0300 |
commit | d05af90d6218e9c8f1c2026990c3f53c1b41bfb0 (patch) | |
tree | 1cac5ddf4e76bb7864e5d05039499098813ccb50 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 72070e57b0a518ec8e562a2b68fdfc796ef5c040 (diff) | |
download | linux-d05af90d6218e9c8f1c2026990c3f53c1b41bfb0.tar.xz |
md/raid10: fix missing discard IO accounting
md_account_bio() is not called from raid10_handle_discard(), now that we
handle bitmap inside md_account_bio(), also fix missing
bitmap_startwrite for discard.
Test whole disk discard for 20G raid10:
Before:
Device d/s dMB/s drqm/s %drqm d_await dareq-sz
md0 48.00 16.00 0.00 0.00 5.42 341.33
After:
Device d/s dMB/s drqm/s %drqm d_await dareq-sz
md0 68.00 20462.00 0.00 0.00 2.65 308133.65
Link: https://lore.kernel.org/linux-raid/20250325015746.3195035-1-yukuai1@huaweicloud.com
Fixes: 528bc2cf2fcc ("md/raid10: enable io accounting")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Coly Li <colyli@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions