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, 25 Jan 2021 15:18:37 +0000 (08:18 -0700)
commit50bae2932671eb88c67c38f7356b9c36cc26457d
treee3e145d1f921a586f6d58edef72d9dd2459b687b
parent7cb73891af953cb5e5eba50f66ea7fd3d26770d1
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