summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-06-23 05:11:01 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-06-23 07:57:21 +0300
commit1aaf5cb41b8e92dcd3ac7e047124cb0e3e27f1c1 (patch)
tree215882ec550c5c11317c6807554da27ea2cae06f /tools/perf/scripts/python/parallel-perf.py
parentde611ab6fc5ed0d68dd46319b9913353e3b459e9 (diff)
downloadlinux-1aaf5cb41b8e92dcd3ac7e047124cb0e3e27f1c1.tar.xz
bcachefs: Fix btree_trans list ordering
The debug code relies on btree_trans_list being ordered so that it can resume on subsequent calls or lock restarts. However, it was using trans->locknig_wait.task.pid, which is incorrect since btree_trans objects are cached and reused - typically by different tasks. Fix this by switching to pointer order, and also sort them lazily when required - speeding up the btree_trans_get() fastpath. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions