diff options
| author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-31 17:54:13 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:21 -0400 |
| commit | dfd41fb9f24699393a042f9c34bd46496da1174d (patch) | |
| tree | c92bb60a1514fcec6067b65ed9ac0450c3ac4c96 /tools/perf/scripts/python | |
| parent | 528b18e6d1c67ccf4ab01cdee94299f3ac61e1ec (diff) | |
| download | linux-dfd41fb9f24699393a042f9c34bd46496da1174d.tar.gz linux-dfd41fb9f24699393a042f9c34bd46496da1174d.zip | |
bcachefs: Fix race between btree updates & journal replay
Add a flag to indicate whether a journal replay key has been
overwritten, and set/test it with appropriate btree locks held.
This fixes a race between the allocator - invalidating buckets, and
doing btree updates - and journal replay, which before this patch could
clobber the allocator thread's update with an older version of the key
from the journal.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
