]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/net: use right helpers for async recycle
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Aug 2022 12:42:00 +0000 (13:42 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Aug 2022 03:34:00 +0000 (21:34 -0600)
commit68e39f4214a13769e06922827481388261e1937b
treec90f47c2a15d44234a50eebb4f526bc8cdb80d21
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
io_uring/net: use right helpers for async recycle

We have a helper that checks for whether a request contains anything in
->async_data or not, namely req_has_async_data(). It's better to use it
as it might have some extra considerations.

Fixes: 0b2262de29a40 ("io_uring: add netmsg cache")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/b7414da4e7c3c32c31fc02dfd1355af4ccf4ca5f.1660566179.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c