bcachefs: thread_with_stdio: fix bch2_stdio_redirect_readline()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 5 Feb 2024 03:56:16 +0000 (22:56 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 13 Mar 2024 22:39:13 +0000 (18:39 -0400)
commitf704f108af79c1ccbc1984cf0fd5e9f30102a718
tree89e0550a19e22b0334872614c3d57bcfe9d90de5
parenta6777ca4ff237d097b3d6186283eb2d2f24071d1
bcachefs: thread_with_stdio: fix bch2_stdio_redirect_readline()

This fixes a bug where we'd return data without waiting for a newline,
if data was present but a newline was not.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/thread_with_file.c