commit | 22cad1585c6bc6caf2688701004cf2af6865cbe0 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Wed Apr 15 00:39:48 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Apr 14 19:16:55 2020 -0600 |
tree | fe6b0e574f15fd5d6fb27bf009e8bf0020e95023 | |
parent | 8e2e1faf28b3e66430f55f0b0ee83370ecc150af [diff] |
io_uring: fix cached_sq_head in io_timeout() io_timeout() can be executed asynchronously by a worker and without holding ctx->uring_lock 1. using ctx->cached_sq_head there is racy there 2. it should count events from a moment of timeout's submission, but not execution Use req->sequence. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>