Files
linux/include/linux
Pavel Begunkov 342b2e395d io_uring/napi: use ktime in busy polling
It's more natural to use ktime/ns instead of keeping around usec,
especially since we're comparing it against user provided timers,
so convert napi busy poll internal handling to ktime. It's also nicer
since the type (ktime_t vs unsigned long) now tells the unit of measure.

Keep everything as ktime, which we convert to/from micro seconds for
IORING_[UN]REGISTER_NAPI. The net/ busy polling works seems to work with
usec, however it's not real usec as shift by 10 is used to get it from
nsecs, see busy_loop_current_time(), so it's easy to get truncated nsec
back and we get back better precision.

Note, we can further improve it later by removing the truncation and
maybe convincing net/ to use ktime/ns instead.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/95e7ec8d095069a3ed5d40a4bc6f8b586698bc7e.1722003776.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-07-26 08:31:59 -06:00
..
2024-04-24 11:06:26 -07:00
2024-04-25 20:55:49 -07:00
2024-05-02 20:35:57 +02:00
2024-04-29 16:28:07 -07:00
2024-07-08 01:51:05 -06:00
2024-06-24 18:29:20 +02:00
2024-05-05 17:53:55 -07:00
2024-06-11 12:57:49 -05:00
2024-05-11 00:41:15 +00:00
2024-05-27 11:08:31 +02:00
2024-06-28 10:36:45 +02:00
2024-05-19 14:36:17 -07:00
2024-05-19 14:40:44 -07:00
2024-05-27 16:50:03 +02:00
2024-06-05 19:19:26 -07:00
2024-05-03 10:44:42 +01:00
2024-07-08 13:47:27 -04:00
2024-06-28 09:52:05 +02:00
2024-07-15 08:02:26 -07:00
2024-07-10 17:52:47 +02:00
2024-05-02 16:28:15 +02:00
2024-07-02 18:59:33 -07:00
2024-06-18 10:13:37 -07:00
2024-05-04 18:57:21 +02:00
2024-07-10 07:59:03 +02:00
2024-05-06 12:05:00 +02:00
2024-07-04 11:00:31 -04:00
2024-06-24 18:16:44 +01:00
2024-04-25 20:55:48 -07:00