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

bcachefs; Don't use btree write buffer until journal replay is finished



The keys being replayed by journal replay have to be synchronized with
updates by other threads that overwrite them. We rely on btree node
locks for synchronizing - but since btree write buffer updates take no
btree locks, that won't work.

Instead, simply disable using the btree write buffer until journal
replay is finished.

This fixes a rare backpointers error in the merge_torture_flakey test.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 0117591e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment