OSDN Git Service

io_uring: remove init for unused list
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jul 2020 20:37:13 +0000 (23:37 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 18:55:45 +0000 (12:55 -0600)
poll*() doesn't use req->list, don't init it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index 2544795..1e4ac48 100644 (file)
@@ -4964,7 +4964,6 @@ static int io_poll_add(struct io_kiocb *req)
        req->flags &= ~REQ_F_WORK_INITIALIZED;
 
        INIT_HLIST_NODE(&req->hash_node);
-       INIT_LIST_HEAD(&req->list);
        ipt.pt._qproc = io_poll_queue_proc;
 
        mask = __io_arm_poll_handler(req, &req->poll, &ipt, poll->events,