summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNilay Shroff <nilay@linux.ibm.com>2025-05-15 16:44:39 +0300
committerJens Axboe <axboe@kernel.dk>2025-05-15 21:14:18 +0300
commit532b9e11b8540eb543ebec9cba851c5691e10b5b (patch)
tree9e798fc6aea5ea032c907f27246478c764b9ef0c /tools/perf/scripts/python/stackcollapse.py
parentdbc5ba08ec5ff799a32f27ac79702a2cfc2200cd (diff)
downloadlinux-532b9e11b8540eb543ebec9cba851c5691e10b5b.tar.xz
block: fix elv_update_nr_hw_queues() to reattach elevator
When nr_hw_queues is updated, the elevator needs to be switched to ensure that we exit elevator and reattach it to ensure that hctx-> sched_tags is correctly allocated for the new hardware queues. However, elv_update_nr_hw_queues() currently only switches the elevator if the queue is not registered. This is incorrect, as it prevents reattaching the elevator after updating nr_hw_queues, which in turn inhibits allocation of sched_tags. Fix this by allowing the elevator switch if the queue is registered, ensuring proper reattachment and resource allocation. Fixes: 596dce110b7d ("block: simplify elevator reattachment for updating nr_hw_queues") Signed-off-by: Nilay Shroff <nilay@linux.ibm.com> Link: https://lore.kernel.org/r/20250515134511.548270-1-nilay@linux.ibm.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions