From: Pavel Begunkov Date: Mon, 13 Jul 2020 20:37:13 +0000 (+0300) Subject: io_uring: remove init for unused list X-Git-Tag: v5.9-rc1~212^2~34 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7d6ddea6beaf6639cf3a2b291dcdac6fe1edc584;p=tomoyo%2Ftomoyo-test1.git io_uring: remove init for unused list poll*() doesn't use req->list, don't init it. Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index 2544795cfd30..1e4ac48b1557 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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,