• Kent Overstreet's avatar
    bcachefs: Fix an error path race · 406d6d5a
    Kent Overstreet authored
    On IO error, bch2_writepages_io_done() will set the page state to
    indicate nothing's already reserved (since the write didn't happen, we
    don't know what's already reserved). This can race with the buffered IO
    path, in between getting a disk reservation and calling
    bch2_set_page_dirty().
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    406d6d5a
fs-io.c 73.5 KB