Skip to content

Commit 3f743e9

Browse files
isilenceaxboe
authored andcommitted
io_uring/net: use right helpers for async_data
There is another spot where we check ->async_data directly instead of using req_has_async_data(), which is the way to do it, fix it up. Fixes: 43e0bbb ("io_uring: add netmsg cache") Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/42f33b9a81dd6ae65dda92f0372b0ff82d548517.1660822636.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 5993000 commit 3f743e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io_uring/net.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ static int io_setup_async_msg(struct io_kiocb *req,
152152
struct io_async_msghdr *kmsg,
153153
unsigned int issue_flags)
154154
{
155-
struct io_async_msghdr *async_msg = req->async_data;
155+
struct io_async_msghdr *async_msg;
156156

157-
if (async_msg)
157+
if (req_has_async_data(req))
158158
return -EAGAIN;
159159
async_msg = io_recvmsg_alloc_async(req, issue_flags);
160160
if (!async_msg) {

0 commit comments

Comments
 (0)