]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/net: fail zc send when unsupported by socket
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 21 Oct 2022 10:16:40 +0000 (11:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Oct 2022 14:43:03 +0000 (08:43 -0600)
commit97a4036c6b893988a65f6332b7509701c0352801
treec4d5c3ce1ed31c57c03947566bccd2d33e18f55e
parentcd55d475823c582fac07d9cf7be710d4bfeedf8a
io_uring/net: fail zc send when unsupported by socket

If a protocol doesn't support zerocopy it will silently fall back to
copying. This type of behaviour has always been a source of troubles
so it's better to fail such requests instead.

Cc: <stable@vger.kernel.org> # 6.0
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2db3c7f16bb6efab4b04569cd16e6242b40c5cb3.1666346426.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c