aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2021-07-31 06:21:30 +0000
committerJens Axboe <[email protected]>2021-08-13 14:01:34 +0000
commit454bb6775202d94f0f489c4632efecdb62d3c904 (patch)
tree8ce5feb20b9e7782dc17e192e8507ef5aa719846 /tools/perf/scripts/python/sched-migration.py
parentRevert "block/mq-deadline: Add cgroup support" (diff)
downloadkernel-454bb6775202d94f0f489c4632efecdb62d3c904.tar.gz
kernel-454bb6775202d94f0f489c4632efecdb62d3c904.zip
blk-mq: clear active_queues before clearing BLK_MQ_F_TAG_QUEUE_SHARED
We run a test that delete and recover devcies frequently(two devices on the same host), and we found that 'active_queues' is super big after a period of time. If device a and device b share a tag set, and a is deleted, then blk_mq_exit_queue() will clear BLK_MQ_F_TAG_QUEUE_SHARED because there is only one queue that are using the tag set. However, if b is still active, the active_queues of b might never be cleared even if b is deleted. Thus clear active_queues before BLK_MQ_F_TAG_QUEUE_SHARED is cleared. Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions