io_uring: do poll's hash_node init in common code
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 18 Oct 2020 09:17:43 +0000 (10:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Oct 2020 19:29:29 +0000 (13:29 -0600)
commit4d52f338992bfc9f494e5a7eb55f4249ab11cd66
tree0d4184e805383561029ae2d27494df0d1f7a8131
parentdd221f46f68ad9df2c1daf7a7626c75fa9bd0bf0
io_uring: do poll's hash_node init in common code

Move INIT_HLIST_NODE(&req->hash_node) into __io_arm_poll_handler(), so
that it doesn't duplicated and common poll code would be responsible for
it.

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