Skip to content
Commit 5510a4af authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix split_race livelock



bch2_btree_update_start() calculates which nodes are going to have to be
split/rewritten, so that we know how many nodes to reserve and how deep
in the tree we have to take locks.

But btree node merges require inserting two keys into the parent node,
not just splits.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 03013bb0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment