io_uring: recycle buffers on error
authorDylan Yudaken <dylany@fb.com>
Thu, 30 Jun 2022 09:12:23 +0000 (02:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:16 +0000 (18:39 -0600)
commitd4e097dae29c24bf33a5056a2a43cff2e45c4978
treef7d41b67c60f1670d70149802b7b8a6a2d271299
parent5702196e7d9d1232c41769e197eb33ba78a9b463
io_uring: recycle buffers on error

Rather than passing an error back to the user with a buffer attached,
recycle the buffer immediately.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220630091231.1456789-5-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c