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

bcachefs: Fix bch2_trans_put()

reference: https://github.com/koverstreet/bcachefs/issues/692



trans->ref is the reference used by the cycle detector, which walks
btree_trans objects of other threads to walk the graph of held locks and
issue wakeups when an abort is required.

We have to wait for the ref to go to 1 before freeing trans->paths or
clearing trans->locking_wait.task.

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