mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
bcachefs: Call bch2_btree_iter_traverse() if necessary in commit path
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
72545b5e76
commit
8804ef1f28
1 changed files with 2 additions and 2 deletions
|
@ -830,9 +830,9 @@ int __bch2_trans_commit(struct btree_trans *trans)
|
|||
trans_trigger_run = false;
|
||||
|
||||
trans_for_each_update(trans, i) {
|
||||
if (unlikely(i->iter->uptodate > BTREE_ITER_NEED_PEEK)) {
|
||||
if (unlikely(i->iter->uptodate > BTREE_ITER_NEED_PEEK &&
|
||||
(ret = bch2_btree_iter_traverse(i->iter)))) {
|
||||
trace_trans_restart_traverse(trans->ip);
|
||||
ret = -EINTR;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue