Commit e6fab655 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Avoid taking journal lock unnecessarily



Previously, any time we failed to get a journal reservation we'd retry,
with the journal lock held; but this isn't necessary given
wait_event()/wake_up() ordering.

This avoids performance cliffs when the journal starts to get backed up
and lock contention shoots up.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent bdec47f5
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