io_uring/net: don't lose partial send_zc on fail
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 21 Sep 2022 11:17:49 +0000 (12:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 19:15:02 +0000 (13:15 -0600)
commit5693bcce892d7b8b15a7a92b011d3d40a023b53c
tree18753fd973e657c0304880bf18b6f811f6a07a1d
parent7e6b638ed501cced4e472298d6b08dd16346f3a6
io_uring/net: don't lose partial send_zc on fail

Partial zc send may end up in io_req_complete_failed(), which not only
would return invalid result but also mask out the notification leading
to lifetime issues.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/5673285b5e83e6ceca323727b4ddaa584b5cc91e.1663668091.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
io_uring/net.h
io_uring/opdef.c