Commit 350175bf authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Improved nocow locking



This improves the nocow lock table so that hash table entries have
multiple locks, and locks specify which bucket they're for - i.e. we can
now resolve hash collisions.

This is important because the allocator has to skip buckets that are
locked in the nocow lock table, and previously hash collisions would
cause it to spuriously skip unlocked buckets.

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