commit | f462fd36fc43662eeb42c95a9b8da8659af6d75e | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <[email protected]> | Wed Mar 04 16:14:11 2020 +0300 |
committer | Jens Axboe <[email protected]> | Wed Mar 04 11:39:06 2020 -0700 |
tree | 6be773b2ba796a7c669bd68c3e3ddffe454c15be | |
parent | 58e3931987377d3f4ec7bbc13e4ea0aab52dc6b0 [diff] |
io-wq: optimise out *next_work() double lock When executing non-linked hashed work, io_worker_handle_work() will lock-unlock wqe->lock to update hash, and then immediately lock-unlock to get next work. Optimise this case and do lock/unlock only once. Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>