Commit 1df3e199 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: BCH_WRITE_SYNC



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>
parent a1019576
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment