]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring : correct timeout req sequence when waiting timeout
authorzhangyi (F) <yi.zhang@huawei.com>
Wed, 23 Oct 2019 07:10:08 +0000 (15:10 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Oct 2019 04:09:56 +0000 (22:09 -0600)
commite6e29e44c2afef5b4cd5600f4ff0388db11fd2ee
tree3112e7810ebfb63944675e06320061f98b723c02
parentbe5bd0ad43f7c7045fcce4661b230f8afb9392ec
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>
fs/io_uring.c