• Kent Overstreet's avatar
    bcachefs: BCH_WRITE_SYNC · 1df3e199
    Kent Overstreet authored
    This adds a new flag for the write path, BCH_WRITE_SYNC, and switches
    the O_DIRECT write path to use it when we're not running asynchronously.
    
    It runs the btree update after the write in the original thread's
    context instead of a kworker, cutting context switches in half.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    1df3e199
io.c 64.8 KB