summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKent Overstreet2020-12-16 15:41:29 -0500
committerKent Overstreet2023-10-22 17:08:50 -0400
commitd483dd17e2bfd6858498d39eb92abd232d7b8e97 (patch)
tree14accac982779273e6f2b769834aded96fc39de3 /tools/perf/scripts/python/export-to-postgresql.py
parentf30dd8601262c74caf148fe834418ad7c931af66 (diff)
bcachefs: Fix race between journal_seq_copy() and journal_seq_drop()
In bch2_btree_interior_update_will_free_node, we copy the journal pins from outstanding writes on the btree node we're about to free. But, this can race with the writes completing, and dropping their journal pins. To guard against this, just use READ_ONCE() in bch2_journal_pin_copy(). Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions