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

bcachefs: thread_with_stdio: eliminate double buffering



The output buffer lock has to be a spinlock so that we can write to it
from interrupt context, so we can't use a direct copy_to_user; this
switches thread_with_file_read() to use fault_in_writeable() and
copy_to_user_nofault(), similar to how thread_with_file_write() works.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent cb6fc943
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