diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-04 07:25:52 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-05 21:13:57 +0300 |
commit | aa982665887590a9443f12323fdf508a22d8c86f (patch) | |
tree | d19913ee9c6cf72a8ea15e485cd29aaab38de096 /fs/bcachefs/io_read.c | |
parent | da4aa3b00123b8a588d23482993751e88bbaa324 (diff) | |
download | linux-aa982665887590a9443f12323fdf508a22d8c86f.tar.xz |
bcachefs: bch2_ec_read_extent() now takes btree_trans
We're not supposed to have more than one btree_trans at a time in a
given thread - that causes recursive locking deadlocks.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_read.c')
-rw-r--r-- | fs/bcachefs/io_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io_read.c b/fs/bcachefs/io_read.c index ae36fc485f5f..a56ed553dc15 100644 --- a/fs/bcachefs/io_read.c +++ b/fs/bcachefs/io_read.c @@ -1025,7 +1025,7 @@ get_bio: trans->notrace_relock_fail = true; } else { /* Attempting reconstruct read: */ - if (bch2_ec_read_extent(c, rbio)) { + if (bch2_ec_read_extent(trans, rbio)) { bch2_rbio_error(rbio, READ_RETRY_AVOID, BLK_STS_IOERR); goto out; } |