Skip to content
Commit c2b2c7d1 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Tweak btree cache helpers for use by btree node scan



btree node scan needs to not use the btree node cache: that causes
interference from prior failed reads and parallel workers.

Instead we need to allocate btree nodes that don't live in the btree
cache, so that we can call bch2_btree_node_read_done() directly.

This patch tweaks the low level helpers so they don't touch the btree
cache lists.

Cc: Nikita Ofitserov <himikof@gmail.com>
Reviewed-by: default avatarNikita Ofitserov <himikof@gmail.com>
Reported-and-tested-by: default avatarEdoardo Codeglia <bcachefs@404.blue>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent c72d6284
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment