Files
linux/fs
Kent Overstreet df2e19a883 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>
2025-05-04 14:00:14 -04:00
..
2025-03-25 15:57:58 +01:00
2025-04-04 11:31:42 -07:00
2024-12-03 10:40:36 +01:00
2025-01-27 19:25:45 -05:00
2025-02-10 16:47:07 -08:00
2024-12-09 11:34:29 +01:00
2024-12-17 09:16:11 +01:00
2025-02-21 10:32:47 +01:00
2024-11-03 01:28:07 -05:00
2024-11-03 01:28:06 -05:00
2024-11-03 01:28:06 -05:00