diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-04 13:50:09 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-04 14:00:14 -0400 |
commit | df2e19a883fdea698cdbed4987987db999b19d58 (patch) | |
tree | 0b0d271c42edd1a3efd962bc44727eff86afffaf /fs/bcachefs/extents.c | |
parent | 6846100b00d97d3d6f05766ae86a0d821d849e78 (diff) |
bcachefs: thread_with_stdio: fix spinning instead of exiting
bch2_stdio_redirect_vprintf() was missing a check for stdio->done, i.e.
exiting.
This caused the thread attempting to print to spin, and since it was
being called from the kthread ran by thread_with_stdio, the userspace
side hung as well.
Change it to return -EPIPE - i.e. writing to a pipe that's been closed.
Reported-by: Jan Solanti <jhs@psonet.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/extents.c')
0 files changed, 0 insertions, 0 deletions