Commit ca43f73c authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: bch2_btree_write_buffer_flush_going_ro()



The write buffer needs to be specifically flushed when going RO: keys in
the journal that haven't yet been moved to the write buffer don't have a
journal pin yet.

This fixes numerous syzbot bugs, all with symptoms of still doing writes
after we've got RO.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 8440da93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment