Commit 49203a6b authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix failure to relock in btree_node_get()

discovered by new trans->locked asserts
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 548e7f51
...@@ -974,6 +974,10 @@ static struct btree *__bch2_btree_node_get(struct btree_trans *trans, struct btr ...@@ -974,6 +974,10 @@ static struct btree *__bch2_btree_node_get(struct btree_trans *trans, struct btr
bch2_btree_node_wait_on_read(b); bch2_btree_node_wait_on_read(b);
ret = bch2_trans_relock(trans);
if (ret)
return ERR_PTR(ret);
/* /*
* should_be_locked is not set on this path yet, so we need to * should_be_locked is not set on this path yet, so we need to
* relock it specifically: * relock it specifically:
......
Markdown is supported
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