From: Kent Overstreet Date: Thu, 24 Oct 2019 18:22:29 +0000 (-0400) Subject: bcachefs: Don't reuse bio in retry path X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=92384391c8d04642bb2be1e0c34f744675f50abc;p=linux.git bcachefs: Don't reuse bio in retry path We can't reuse bios without reinitializing them, and in the retry path it's safer to just make sure we don't reuse them at all. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c index a343393115d8c..3f075dcfafb26 100644 --- a/fs/bcachefs/io.c +++ b/fs/bcachefs/io.c @@ -1447,6 +1447,7 @@ static void bch2_read_retry_nodecode(struct bch_fs *c, struct bch_read_bio *rbio int ret; flags &= ~BCH_READ_LAST_FRAGMENT; + flags |= BCH_READ_MUST_CLONE; bch2_trans_init(&trans, c, 0, 0);