Linus Torvalds 52bce91165 splice: reinstate SIGPIPE/EPIPE handling
Commit 8924feff66f3 ("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: 8924feff66f3 ("splice: lift pipe_lock out of splice_to_pipe()")
Reported-and-tested-by: Andreas Schwab <schwab@linux-m68k.org>
Debugged-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: stable@kernel.org   # v4.9
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-12-21 10:59:34 -08:00
..
2016-10-15 12:09:13 -07:00
2016-12-14 08:31:37 -08:00
2016-05-20 17:58:30 -07:00
2016-12-21 10:40:30 -08:00
2016-12-04 18:29:28 -05:00
2016-12-05 19:01:16 -05:00
2016-12-14 21:35:31 -08:00
2016-12-04 18:29:28 -05:00
2016-12-05 19:01:16 -05:00
2016-09-27 18:47:38 -04:00
2016-12-14 21:35:31 -08:00
2016-12-14 23:48:11 -05:00
2016-12-03 20:51:35 -05:00
2016-10-13 20:28:22 -07:00
2016-12-05 19:03:49 -05:00
2016-11-30 08:38:07 +01:00
2016-12-05 19:03:49 -05:00