Skip to content

Commit 5dbfc4e

Browse files
author
Kent Overstreet
committed
bcachefs: fix failure to relock in btree_node_fill()
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 3c5d0b7 commit 5dbfc4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/bcachefs/btree_cache.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,10 @@ static noinline struct btree *bch2_btree_node_fill(struct btree_trans *trans,
873873

874874
bch2_btree_node_read(trans, b, sync);
875875

876+
int ret = bch2_trans_relock(trans);
877+
if (ret)
878+
return ERR_PTR(ret);
879+
876880
if (!sync)
877881
return NULL;
878882

0 commit comments

Comments
 (0)