mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-28 07:13:10 -04:00
bcachefs: Add a missing bch2_trans_relock() call
This was causing an assertion to pop in fsck, in one of the repair paths. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
committed by
Kent Overstreet
parent
c79272d1e4
commit
aa76bd3321
@@ -795,6 +795,9 @@ bch2_trans_commit_get_rw_cold(struct btree_trans *trans)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (!bch2_trans_relock(trans))
|
||||
return -EINTR;
|
||||
|
||||
percpu_ref_get(&c->writes);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user