commit | 2c2f45f24665fea7d04406a5f1e6afe7fb374c33 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Tue Nov 01 08:34:44 2016 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Dec 26 23:54:21 2016 -0500 |
tree | 772c52f03ea75aaca986b5ec33d24c0b7e436852 | |
parent | 15a8f657c71d278e0ca8193bf7162fb4ede0794e [diff] |
switch AF_UNIX to generic_file_splice_read() The only obstacle to using generic_file_splice_read() in there is that we need an equivalent of MSG_DONTWAIT with SPLICE_F_NONBLOCK in splice flags. Introduce IOCB_NDELAY, make sock_read_iter() honour it (and generic_file_splice_read() set it when SPLICE_F_NONBLOCK is present) and generic_file_splice_read() for AF_UNIX sockets will do the right thing. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>