Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring: clear ->async_data as part of normal init

Opcode handlers like POLL_ADD will use ->async_data as the pointer for
double poll handling, which is a bit different than the usual case
where it's strictly gated by the REQ_F_ASYNC_DATA flag. Be a bit more
proactive in handling ->async_data, and clear it to NULL as part of
regular init. Init is touching that cacheline anyway, so might as well
clear it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

Jens Axboe e4e6aaea 508c1314

+1
+1
io_uring/io_uring.c
··· 2119 2119 req->file = NULL; 2120 2120 req->tctx = current->io_uring; 2121 2121 req->cancel_seq_set = false; 2122 + req->async_data = NULL; 2122 2123 2123 2124 if (unlikely(opcode >= IORING_OP_LAST)) { 2124 2125 req->opcode = 0;