]> 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)
commit3e354806ebfc3acae15e37cafd989c7850736940
treeab9d8463d266a7651792830d467879e62828c99e
parent033112e03660daf8796638effb1e8017510647a4
io_uring: don't dynamically allocate poll data

This essentially reverts commit 9126401b94e5. 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