]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/net: fix zc fixed buf lifetime
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 16 Sep 2022 22:22:57 +0000 (23:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 Sep 2022 11:07:51 +0000 (05:07 -0600)
commitf177a148fea7939caa2fdd224c5d42f916f7df2f
tree642127848edd035e770c2871f8c23bfcc69a38a8
parentb520f7d53fbd890b0ec9c48dea3d615019b414f6
io_uring/net: fix zc fixed buf lifetime

Notifications usually outlive requests, so we need to pin buffers with
it by assigning a rsrc to it instead of the request.

Fixed: bbe9d90825d19 ("io_uring/net: simplify zerocopy send user API")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/dd6406ff8a90887f2b36ed6205dac9fda17c1f35.1663366886.git.asml.silence@gmail.com
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c