Commit 27b2df98 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Kill for_each_btree_key()



for_each_btree_key() handles transaction restarts, like
for_each_btree_key2(), but only calls bch2_trans_begin() after a
transaction restart - for_each_btree_key2() wraps every loop iteration
in a transaction.

The for_each_btree_key() behaviour is problematic when it leads to
holding the SRCU lock that prevents key cache reclaim for an unbounded
amount of time - there's no real need to keep it around.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 8c066ede
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment