io_uring/io-wq: don't grab wq->lock for worker activation
authorJens Axboe <axboe@kernel.dk>
Wed, 9 Aug 2023 18:58:59 +0000 (12:58 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Aug 2023 16:36:12 +0000 (10:36 -0600)
commit78848b9b05623cfddb790d23b0dc38a275eb0763
tree6098c9b1068cc1ac8545c2a822da90ab1d5f50eb
parent89226307b109f828566f0e024ee97b722167927c
io_uring/io-wq: don't grab wq->lock for worker activation

The worker free list is RCU protected, and checks for workers going away
when iterating it. There's no need to hold the wq->lock around the
lookup.

Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c