mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
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: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
9b31152fd7
commit
beccf29114
1 changed files with 7 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue