io_uring/net: remove (now) dead code in io_netmsg_recycle()
authorJens Axboe <axboe@kernel.dk>
Thu, 21 Mar 2024 01:09:50 +0000 (19:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:25 +0000 (08:10 -0600)
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>
io_uring/net.c

index 77f2eb79e5e0c1db70e32163fd76afbaf43b41e7..adc6d6e1cce6dfa25389141d09c29674a11667c3 100644 (file)
@@ -119,7 +119,7 @@ static void io_netmsg_recycle(struct io_kiocb *req, unsigned int issue_flags)
 {
        struct io_async_msghdr *hdr = req->async_data;
 
-       if (!req_has_async_data(req) || issue_flags & IO_URING_F_UNLOCKED)
+       if (unlikely(issue_flags & IO_URING_F_UNLOCKED))
                return;
 
        /* Let normal cleanup path reap it if we fail adding to the cache */