summaryrefslogtreecommitdiffstats
path: root/io_uring/net.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-20 19:09:50 -0600
committerJens Axboe <axboe@kernel.dk>2024-04-15 08:10:25 -0600
commit9f8539fe299c250af42325eccff66e8b8d1f15da (patch)
tree39154bb549ffd02edf024d1377bb4a33e3e6c1c8 /io_uring/net.c
parent6498c5c97ce73770ed227eb52b14d21c8343fd5b (diff)
downloadlinux-9f8539fe299c250af42325eccff66e8b8d1f15da.tar.gz
linux-9f8539fe299c250af42325eccff66e8b8d1f15da.tar.bz2
linux-9f8539fe299c250af42325eccff66e8b8d1f15da.zip
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>
Diffstat (limited to 'io_uring/net.c')
-rw-r--r--io_uring/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/net.c b/io_uring/net.c
index 77f2eb79e5e0..adc6d6e1cce6 100644
--- a/io_uring/net.c
+++ b/io_uring/net.c
@@ -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 */