diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-08-09 21:07:54 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-11 18:36:20 +0200 |
commit | 22f7fb80e6d91980785d235dc939695d3a271c3b (patch) | |
tree | b13719ddcc44d9020eb94b6805b9dada0cec6d23 /io_uring/net.c | |
parent | io_uring/io-wq: reduce frequency of acct->lock acquisitions (diff) | |
download | linux-22f7fb80e6d91980785d235dc939695d3a271c3b.tar.xz linux-22f7fb80e6d91980785d235dc939695d3a271c3b.zip |
io_uring/io-wq: don't gate worker wake up success on wake_up_process()
All we really care about is finding a free worker. If said worker is
already running, it's either starting new work already or it's just
finishing up existing work. For the latter, we'll be finding this work
item next anyway, and for the former, if the worker does go to sleep,
it'll create a new worker anyway as we have pending items.
This reduces try_to_wake_up() overhead considerably:
23.16% -10.46% [kernel.kallsyms] [k] try_to_wake_up
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/net.c')
0 files changed, 0 insertions, 0 deletions