Kent Overstreet
d483dd17e2
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>
2023-10-22 17:08:50 -04:00
..
2023-10-22 17:08:33 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:47 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:47 -04:00
2023-10-22 17:08:37 -04:00
2023-10-22 17:08:32 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:32 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:47 -04:00
2023-10-22 17:08:47 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:41 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:34 -04:00
2023-10-22 17:08:34 -04:00
2023-10-22 17:08:33 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:39 -04:00
2023-10-22 17:08:33 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:41 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:39 -04:00
2023-10-22 17:08:36 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:14 -04:00
2023-10-22 17:08:16 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:33 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:44 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:47 -04:00
2023-10-22 17:08:40 -04:00
2023-10-22 17:08:40 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:40 -04:00
2023-10-22 17:08:40 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:42 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:13 -04:00
2023-10-22 17:08:39 -04:00
2023-10-22 17:08:14 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:40 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:45 -04:00
2023-10-22 17:08:13 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:32 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:44 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:49 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:08:50 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:46 -04:00
2023-10-22 17:08:44 -04:00
2023-10-22 17:08:12 -04:00