]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/net: fix zc send link failing
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 24 Aug 2022 12:07:39 +0000 (13:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Aug 2022 14:57:00 +0000 (08:57 -0600)
commitfc27b4df2b989a54696200e313638f8cd808a3d5
tree1f96df48fb36297a2225c8ec25a05862301b6b76
parent9865c275fc29f68cf408a306cd87b8a9834d4801
io_uring/net: fix zc send link failing

Failed requests should be marked with req_set_fail(), so links and cqe
skipping work correctly, which is missing in io_sendzc(). Note,
io_sendzc() return IOU_OK on failure, so the core code won't do the
cleanup for us.

Fixes: cdb0f8e14fe8b ("io_uring: wire send zc request type")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e47d46fda9db30154ce66a549bb0d3380b780520.1661342812.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c