Files
linux/io_uring
Jens Axboe 3a08988123 io_uring/net: only retry recv bundle for a full transfer
If a shorter than assumed transfer was seen, a partial buffer will have
been filled. For that case it isn't sane to attempt to fill more into
the bundle before posting a completion, as that will cause a gap in
the received data.

Check if the iterator has hit zero and only allow to continue a bundle
operation if that is the case.

Also ensure that for putting finished buffers, only the current transfer
is accounted. Otherwise too many buffers may be put for a short transfer.

Link: https://github.com/axboe/liburing/issues/1409
Cc: stable@vger.kernel.org
Fixes: 7c71a0af81 ("io_uring/net: improve recv bundles")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-05-21 19:24:18 -06:00
..
2025-01-28 15:10:40 -07:00
2025-02-17 05:34:45 -07:00
2025-02-17 16:43:04 -08:00
2025-03-07 13:41:08 -07:00
2025-02-28 19:35:37 -07:00
2022-07-24 18:39:11 -06:00
2024-11-13 11:44:30 -05:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00
2025-02-24 12:10:38 -07:00