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

bcachefs: Path must be locked if trans->locked && should_be_locked



If path->should_be_locked is true, that means user code (of the btree
API) has seen, in this transaction, something guarded by the node this
path has locked, and we have to keep it locked until the end of the
transaction.

Assert that we're not violating this; should_be_locked should also be
cleared only in _very_ special situations.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 22e921a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment