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)
commit93bd25bb69f46367ba8f82c578e0c05702ceb482
tree85b308edb8abd25bd71ecb79b9419222433ddcb5
parent65de03e251382306a4575b1779c57c87889eee49
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