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

bcachefs: Fix a race in btree_update_nodes_written()



One btree update might have terminated in a node update, and then while
it is in flight another btree update might free that original node.

This race has to be handled in btree_update_nodes_written() - we were
missing a READ_ONCE().

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