commit | f237c30a5610d35a584f3296d397b93d80ce374e | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Wed Aug 18 12:42:46 2021 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Aug 23 13:13:04 2021 -0600 |
tree | f2cbf701db225fbaa3d3402ec02d72002acd81b1 | |
parent | 5636c00d3e8ef1f6d1291e71edb48f727ba5a999 [diff] |
io_uring: batch task work locking Many task_work handlers either grab ->uring_lock, or may benefit from having it. Move locking logic out of individual handlers to a lazy approach controlled by tctx_task_work(), so we don't keep doing tons of mutex lock/unlock. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/d6a34e147f2507a2f3e2fa1e38a9c541dcad3929.1629286357.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>