mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
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>
This commit is contained in:
parent
6498c5c97c
commit
9f8539fe29
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user