diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-06-22 22:11:01 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-06-23 00:57:21 -0400 |
commit | 1aaf5cb41b8e92dcd3ac7e047124cb0e3e27f1c1 (patch) | |
tree | 215882ec550c5c11317c6807554da27ea2cae06f /lib/crypto/mpi/mpi-mod.c | |
parent | de611ab6fc5ed0d68dd46319b9913353e3b459e9 (diff) |
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 'lib/crypto/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions