Commit 8322a937 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Btree key cache optimization



This helps with lock contention in the journalling code: instead of
updating our journal pin on every write, only get a journal pin if we
don't have one.

This means we can avoid hammering on journal locks nearly so much, at
the cost of carrying around a journal pin for an older entry than the
one we actually need. To handle that, if needed we update our journal
pin to the correct one when flushed by journal reclaim.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 702a4ef0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment