]> 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)
commitedf81438799ccead7122948446d7e44b083e788d
treec4d5c3ce1ed31c57c03947566bccd2d33e18f55e
parente993ffe3da4bcddea0536b03be1031bf35cd8d85
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