diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-04-15 00:39:48 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-14 19:16:55 -0600 |
commit | 22cad1585c6bc6caf2688701004cf2af6865cbe0 (patch) | |
tree | fe6b0e574f15fd5d6fb27bf009e8bf0020e95023 /lib/mpi/mpiutil.c | |
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>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions