summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-10-15 05:52:38 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2024-10-18 06:49:47 +0200
commit028f3c1d9b3cddfbe327a3e6f09c3229aefc366c (patch)
treebe2ceb02e9fcfe26d0af7b7f23dbeabf9c819911
parentbcachefs: fix restart handling in bch2_fiemap() (diff)
downloadlinux-028f3c1d9b3cddfbe327a3e6f09c3229aefc366c.tar.xz
linux-028f3c1d9b3cddfbe327a3e6f09c3229aefc366c.zip
bcachefs: fix missing restart handling in bch2_read_retry_nodecode()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/io_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/io_read.c b/fs/bcachefs/io_read.c
index e4fc17c548fd..f00beff9ca0e 100644
--- a/fs/bcachefs/io_read.c
+++ b/fs/bcachefs/io_read.c
@@ -409,8 +409,8 @@ retry:
bch2_trans_begin(trans);
rbio->bio.bi_status = 0;
- k = bch2_btree_iter_peek_slot(&iter);
- if (bkey_err(k))
+ ret = lockrestart_do(trans, bkey_err(k = bch2_btree_iter_peek_slot(&iter)));
+ if (ret)
goto err;
bch2_bkey_buf_reassemble(&sk, c, k);