mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00: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:
parent
c79272d1e4
commit
aa76bd3321
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue