Skip to content

Commit 9f8539f

Browse files
committed
io_uring/net: remove (now) dead code in io_netmsg_recycle()
All net commands have async data at this point, there's no reason to check if this is the case or not. Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 6498c5c commit 9f8539f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io_uring/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static void io_netmsg_recycle(struct io_kiocb *req, unsigned int issue_flags)
119119
{
120120
struct io_async_msghdr *hdr = req->async_data;
121121

122-
if (!req_has_async_data(req) || issue_flags & IO_URING_F_UNLOCKED)
122+
if (unlikely(issue_flags & IO_URING_F_UNLOCKED))
123123
return;
124124

125125
/* Let normal cleanup path reap it if we fail adding to the cache */

0 commit comments

Comments
 (0)