]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make timeout sequence == 0 mean no sequence
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Nov 2019 06:34:31 +0000 (23:34 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Nov 2019 07:18:51 +0000 (00:18 -0700)
commitb771505671e46420ab1ad8a76a1b5c06f1e963e3
tree85b308edb8abd25bd71ecb79b9419222433ddcb5
parentf92ccba3760feff4cb7cc661b5adf7fbea668b7b
io_uring: make timeout sequence == 0 mean no sequence

Currently we make sequence == 0 be the same as sequence == 1, but that's
not super useful if the intent is really to have a timeout that's just
a pure timeout.

If the user passes in sqe->off == 0, then don't apply any sequence logic
to the request, let it purely be driven by the timeout specified.

Reported-by: 李通洲 <carter.li@eoitek.com>
Reviewed-by: 李通洲 <carter.li@eoitek.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c