]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49b7c6c13971bb96d06116e93e41bc14be6e0026
treeab9d8463d266a7651792830d467879e62828c99e
parentcaf7a73ce60035f5ba3f7525ac0ffca51eaab053
io_uring: don't dynamically allocate poll data

This essentially reverts commit 3510df7f444d. 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