bcachefs: Fix failure to relock in btree_node_get()
discovered by new trans->locked asserts Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
548e7f5167
commit
49203a6b9d
@ -974,6 +974,10 @@ retry:
|
||||
|
||||
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
|
||||
* relock it specifically:
|
||||
|
Loading…
Reference in New Issue
Block a user