aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2025-07-03 22:03:10 +0000
committerKent Overstreet <[email protected]>2025-07-05 16:42:41 +0000
commita77ffbe34d450dd685e55ba942b025ded2517aff (patch)
tree38d3183c946e256cdc72ce6deb952f3291a78140 /rust/helpers
parentbcachefs: Tweak btree cache helpers for use by btree node scan (diff)
downloadkernel-a77ffbe34d450dd685e55ba942b025ded2517aff.tar.gz
kernel-a77ffbe34d450dd685e55ba942b025ded2517aff.zip
bcachefs: btree node scan no longer uses btree cache
Previously, btree node scan used the btree node cache to check if btree nodes were readable, but this is subject to interference from threads scanning different devices trying to read the same node - and more critically, nodes that we already attempted and failed to read before kicking off scan. Instead, we now allocate a 'struct btree' that does not live in the btree node cache, and call bch2_btree_node_read_done() directly. Cc: Nikita Ofitserov <[email protected]> Reviewed-by: Nikita Ofitserov <[email protected]> Reported-and-tested-by: Edoardo Codeglia <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions