Commit e4215d0f authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: All held locks must be in a btree path



With the new deadlock cycle detector, it's critical that all held locks
be marked in a btree_path, because that's what the cycle detector
traverses - any locks that aren't correctly marked will cause deadlocks.

This changes the btree_path to allocate some btree_paths for the new
nodes, since until the final update is done we otherwise don't have a
path referencing them.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 367d72dd
Supports Markdown
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