io_uring: add a helper timeout mode calculation
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Jan 2021 13:32:44 +0000 (13:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commit8662daec09edcdba2659799040aee1ba575c4799
treee27783fc002bff3099735888d72b00f066201a61
parenteab30c4d20dc761d463445e5130421863ff81505
io_uring: add a helper timeout mode calculation

Deduplicates translation of timeout flags into hrtimer_mode.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c