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)
commit063604265f967e90901996a1b173fe6df582d350
treec90f47c2a15d44234a50eebb4f526bc8cdb80d21
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
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: 43e0bbbd0b0e3 ("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