commit | ef03681ae8df770745978148a7fb84796ae99cba | [log] [tgz] |
---|---|---|
author | zhangyi (F) <yi.zhang@huawei.com> | Wed Oct 23 15:10:08 2019 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Oct 23 22:09:56 2019 -0600 |
tree | 3112e7810ebfb63944675e06320061f98b723c02 | |
parent | bc808bced39f4e4b626c5ea8c63d5e41fce7205a [diff] |
io_uring : correct timeout req sequence when waiting timeout The sequence number of reqs on the timeout_list before the timeout req should be adjusted in io_timeout_fn(), because the current timeout req will consumes a slot in the cq_ring and cq_tail pointer will be increased, otherwise other timeout reqs may return in advance without waiting for enough wait_nr. Signed-off-by: zhangyi (F) <yi.zhang@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>