]> git.infradead.org Git - users/hch/misc.git/commit
io_uring/napi: pass ktime to io_napi_adjust_timeout
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 26 Jul 2024 14:24:31 +0000 (15:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 26 Jul 2024 14:31:59 +0000 (08:31 -0600)
commit358169617602f6f71b31e5c9532a09b95a34b043
tree1055fc3dd02e8f1aa0c676aba6c532cf0f3892d8
parent342b2e395d5f34c9f111a818556e617939f83a8c
io_uring/napi: pass ktime to io_napi_adjust_timeout

Pass the waiting time for __io_napi_adjust_timeout as ktime and get rid
of all timespec64 conversions. It's especially simpler since the caller
already have a ktime.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4f5b8e8eed4f53a1879e031a6712b25381adc23d.1722003776.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/napi.c
io_uring/napi.h