bcachefs: Fix transaction restarts due to upgrading of cloned iterators
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 16 Apr 2021 18:29:26 +0000 (14:29 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:00 +0000 (17:09 -0400)
commit5e6a668b19614c44819c4b0f7691da92df973384
tree371eef2e556c9cd10161185a9456103e883da372
parent96f399d0eed9a63e706c045407675622f32f5a5d
bcachefs: Fix transaction restarts due to upgrading of cloned iterators

This fixes a regression from
  52d86202fd bcachefs: Improve bch2_btree_iter_traverse_all()

We want to avoid mucking with other iterators in the btree transaction
in operations that are only supposed to be touching individual iterators
- that patch was a cleanup to move lock ordering handling to
bch2_btree_iter_traverse_all(). But it broke upgrading of cloned
iterators.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c