Skip to content
Commit 52bce911 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

splice: reinstate SIGPIPE/EPIPE handling

Commit 8924feff ("splice: lift pipe_lock out of splice_to_pipe()")
caused a regression when there were no more readers left on a pipe that
was being spliced into: rather than the expected SIGPIPE and -EPIPE
return value, the writer would end up waiting forever for space to free
up (which obviously was not going to happen with no readers around).

Fixes: 8924feff

 ("splice: lift pipe_lock out of splice_to_pipe()")
Reported-and-tested-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
Debugged-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Cc: stable@kernel.org   # v4.9
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0c961c55
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