diff options
| author | Kent Overstreet | 2020-06-12 14:58:07 -0400 |
|---|---|---|
| committer | Kent Overstreet | 2023-10-22 17:08:41 -0400 |
| commit | 515282ac7d847d567dd3ba802edf34316368bb14 (patch) | |
| tree | bf4b1cf0cbd0826e8899bf9c1b0c907d4cd38aed /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 4e8224ed8ab3c671bb96b6b98c8f8de14637440d (diff) | |
bcachefs: Fix a deadlock
__bch2_btree_node_lock() was incorrectly using iter->pos as a proxy for
btree node lock ordering, this caused an off by one error that was
triggered by bch2_btree_node_get_sibling() getting the previous node.
This refactors the code to compare against btree node keys directly.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
