diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-03-04 16:14:11 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-04 11:39:06 -0700 |
commit | f462fd36fc43662eeb42c95a9b8da8659af6d75e (patch) | |
tree | 6be773b2ba796a7c669bd68c3e3ddffe454c15be /fs/io-wq.h | |
parent | 58e3931987377d3f4ec7bbc13e4ea0aab52dc6b0 (diff) | |
download | lwn-f462fd36fc43662eeb42c95a9b8da8659af6d75e.tar.gz lwn-f462fd36fc43662eeb42c95a9b8da8659af6d75e.zip |
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 <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
0 files changed, 0 insertions, 0 deletions