io_uring: add io_req_local_work_add wake fast path
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 9 Jan 2023 14:46:12 +0000 (14:46 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Jan 2023 17:25:35 +0000 (10:25 -0700)
commit6cd16656e2ddc63ee7aae7c7f27edcab933a0e09
treee3459976f7d1898120b78f3ecc730a04a85ba499
parent65ca9dd8ce5e3de42b100f0e7d2ae360e9b8d14e
io_uring: add io_req_local_work_add wake fast path

Don't wake the master task after queueing a deferred tw unless it's
currently waiting in io_cqring_wait.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/717702d772825a6647e6c315b4690277ba84c3fc.1673274244.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c