diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-03-04 16:14:10 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-04 21:39:04 +0300 |
commit | 58e3931987377d3f4ec7bbc13e4ea0aab52dc6b0 (patch) | |
tree | 624d986e6422514759b574c5ae3b62a8dc25f8f1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dc026a73c7221b4d9d146ed0bde69ff578ebe8dc (diff) | |
download | linux-58e3931987377d3f4ec7bbc13e4ea0aab52dc6b0.tar.xz |
io-wq: optimise locking in io_worker_handle_work()
There are 2 optimisations:
- Now, io_worker_handler_work() do io_assign_current_work() twice per
request, and each one adds lock/unlock(worker->lock) pair. The first is
to reset worker->cur_work to NULL, and the second to set a real work
shortly after. If there is a dependant work, set it immediately, that
effectively removes the extra NULL'ing.
- And there is no use in taking wqe->lock for linked works, as they are
not hashed now. Optimise it out.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions