aboutsummaryrefslogtreecommitdiffstats
path: root/lib/genalloc.c
diff options
context:
space:
mode:
authorJohannes Berg <[email protected]>2021-01-25 09:16:15 +0000
committerLinus Torvalds <[email protected]>2021-01-25 20:32:26 +0000
commitf8ad8187c3b536ee2b10502a8340c014204a1af0 (patch)
tree0f6d751ef9f44db7d0438f3b75eee6a3fff75ddb /lib/genalloc.c
parentCommit 9bb48c82aced ("tty: implement write_iter") converted the tty (diff)
downloadkernel-f8ad8187c3b536ee2b10502a8340c014204a1af0.tar.gz
kernel-f8ad8187c3b536ee2b10502a8340c014204a1af0.zip
fs/pipe: allow sendfile() to pipe again
After commit 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops") sendfile() could no longer send data from a real file to a pipe, breaking for example certain cgit setups (e.g. when running behind fcgiwrap), because in this case cgit will try to do exactly this: sendfile() to a pipe. Fix this by using iter_file_splice_write for the splice_write method of pipes, as suggested by Christoph. Cc: [email protected] Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops") Suggested-by: Christoph Hellwig <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Tested-by: Johannes Berg <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions