io_uring: don't dynamically allocate poll data
authorJens Axboe <axboe@kernel.dk>
Tue, 10 Dec 2019 00:52:20 +0000 (17:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Dec 2019 23:33:23 +0000 (16:33 -0700)
commit392edb45b24337eaa0bc1ecd4e3cf897e662ec61
treeab9d8463d266a7651792830d467879e62828c99e
parentd96885658d9971fc2c752b8699f17a42ef745db6
io_uring: don't dynamically allocate poll data

This essentially reverts commit e944475e6984. For high poll ops
workloads, like TAO, the dynamic allocation of the wait_queue
entry for IORING_OP_POLL_ADD adds considerable extra overhead.
Go back to embedding the wait_queue_entry, but keep the usage of
wait->private for the pointer stashing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c