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-06-05 15:52:34 +02:00
2024-07-15 08:02:26 -07:00
2024-04-25 14:41:18 +05:30
2024-07-15 08:49:59 -07:00
2024-07-19 12:39:34 -07:00
2024-07-02 11:40:37 +02:00
2024-06-23 09:53:32 +03:00
2024-06-30 11:29:24 +01:00
2024-06-24 18:16:45 +01:00
2024-07-18 09:34:02 -07:00
2024-07-04 12:29:07 +02:00
2024-07-19 11:57:55 -07:00
2024-05-16 08:56:49 -07:00
2024-04-24 11:06:26 -07:00
2024-07-05 09:35:51 +01:00
2024-04-25 20:55:49 -07:00
2024-07-03 14:07:14 +01:00
2024-07-17 17:42:20 -07:00
2024-07-05 18:30:00 -07:00
2024-06-12 09:20:13 +02:00
2024-06-26 20:09:28 +01:00
2024-04-30 10:44:53 -06:00
2024-05-23 12:04:36 -07:00
2024-07-09 11:16:42 +02:00
2024-05-04 18:26:50 +05:30
2024-07-15 18:03:43 -07:00
2024-07-18 17:17:30 -07:00
2024-07-10 13:56:22 +02:00
2024-04-26 12:07:23 +02:00
2024-07-19 12:39:34 -07:00
2024-05-26 14:40:39 -07:00
2024-04-26 10:33:05 +02:00
2024-07-17 22:13:12 -07:00
2024-05-02 20:35:57 +02:00
2024-07-04 16:45:25 +01:00
2024-07-13 21:31:57 -07:00
2024-06-12 11:00:50 -06:00
2024-05-21 15:29:01 -07:00
2024-06-20 15:19:17 -06:00
2024-06-28 10:29:42 -06:00
2024-07-15 14:20:22 -07:00
2024-04-24 16:01:10 -07:00
2024-07-12 22:14:15 +02:00
2024-07-09 17:01:46 +02:00
2024-04-25 20:55:59 -07:00
2024-07-14 20:38:34 -07:00
2024-04-29 16:28:07 -07:00
2024-07-09 17:01:46 +02:00
2024-05-21 09:51:42 -07:00
2024-07-08 01:51:05 -06:00
2024-07-10 10:19:59 -07:00
2024-06-10 08:50:09 +02:00
2024-06-17 17:45:34 +02:00
2024-05-15 10:05:24 -04:00
2024-05-26 08:45:09 -10:00
2024-07-16 16:42:37 -07:00
2024-06-03 11:18:50 +02:00
2024-06-03 11:18:50 +02:00
2024-07-10 09:53:39 -04:00
2024-04-25 20:55:57 -07:00
2024-06-24 18:29:20 +02:00
2024-05-09 09:25:08 -07:00
2024-06-14 19:08:32 +02:00
2024-05-22 14:12:11 -07:00
2024-07-18 10:33:14 -07:00
2024-05-30 15:06:26 -07:00
2024-06-17 20:42:57 +02:00
2024-05-08 09:53:00 -07:00
2024-06-10 08:50:01 +02:00
2024-07-09 17:58:20 +02:00
2024-07-15 15:03:09 -07:00
2024-06-17 17:45:31 +02:00
2024-06-28 18:38:33 +01:00
2024-07-10 13:19:50 -07:00
2024-05-02 12:12:08 -07:00
2024-05-05 17:53:55 -07:00
2024-07-15 11:39:44 -07:00
2024-06-30 12:27:16 +01:00
2024-06-12 11:29:36 -04:00
2024-07-19 10:48:44 -07:00
2024-06-04 15:53:36 +02:00
2024-05-14 11:43:40 +02:00
2024-06-25 17:15:06 -07:00
2024-06-11 12:57:49 -05:00
2024-04-26 12:07:24 +02:00
2024-05-27 09:50:05 +02:00
2024-04-25 20:55:59 -07:00
2024-05-06 13:28:59 -07:00
2024-06-19 20:05:34 +05:30
2024-05-20 10:23:39 -07:00
2024-05-09 19:00:29 +02:00
2024-06-21 15:31:56 +05:30
2024-04-26 11:57:36 +02:00
2024-07-12 10:06:01 +02:00
2024-05-25 10:48:57 -07:00
2024-07-15 08:02:30 -07:00
2024-05-14 00:31:43 -07:00
2024-05-28 15:57:23 +02: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-07-09 17:01:46 +02:00
2024-05-21 15:29:01 -07:00
2024-05-06 11:06:04 +09:00
2024-06-19 13:32:04 -07:00
2024-05-01 23:18:47 +09:00
2024-05-19 14:36:17 -07:00
2024-07-02 06:20:49 +02:00
2024-07-15 14:20:22 -07:00
2024-07-03 10:36:14 +02:00
2024-04-29 15:01:42 +01:00
2024-06-05 09:52:38 +02:00
2024-06-18 16:25:50 +02:00
2024-07-18 13:36:33 -07:00
2024-04-25 20:55:51 -07:00
2024-05-19 14:40:44 -07:00
2024-05-27 16:50:03 +02:00
2024-07-01 14:48:16 +02:00
2024-06-27 11:00:45 +02:00
2024-06-05 19:19:24 -07:00
2024-05-19 09:21:03 -07:00
2024-06-16 13:41:53 +08:00
2024-06-03 20:25:28 -07:00
2024-05-13 16:13:19 +02:00
2024-07-13 11:11:58 +02:00
2024-06-12 13:04:25 +02:00
2024-07-08 16:22:49 -07:00
2024-04-25 21:07:02 -07:00
2024-04-30 21:10:37 +02:00
2024-06-21 14:52:12 +02:00
2024-05-31 16:28:19 +03:00
2024-07-08 11:40:57 -05:00
2024-06-06 14:35:01 -07:00
2024-07-26 08:31:59 -06:00
2024-07-03 15:45:47 +01:00
2024-05-19 09:21:03 -07:00
2024-07-19 09:59:58 -07:00
2024-05-28 11:14:14 -05:00
2024-05-07 13:29:45 +02:00
2024-07-04 09:25:59 +02:00
2024-05-15 17:02:08 -05:00
2024-07-08 23:59:37 -04:00
2024-06-17 12:30:07 -07:00
2024-05-19 14:02:03 -07:00
2024-05-22 11:53:02 -07:00
2024-04-25 21:07:02 -07:00
2024-05-16 07:23:30 +09:00
2024-06-05 19:19:26 -07:00
2024-05-12 03:16:47 -04:00
2024-05-03 10:44:42 +01:00
2024-07-04 17:07:01 +01:00
2024-07-04 11:52:32 +02:00
2024-06-13 23:05:27 +02:00
2024-05-09 15:48:01 +02:00
2024-06-24 16:41:22 -07:00
2024-06-24 16:41:22 -07:00
2024-07-14 19:00:16 -04:00
2024-07-18 17:27:43 -07:00
2024-07-16 14:50:44 -07:00
2024-05-07 15:17:52 -07:00
2024-06-10 19:52:44 -07:00
2024-07-01 19:28:58 +01:00
2024-06-06 07:55:51 +03:00
2024-05-07 10:37:00 -07:00
2024-05-05 17:53:25 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:56 -07:00
2024-07-03 19:06:14 +05:30
2024-07-15 08:02:26 -07:00
2024-07-12 06:45:23 -10:00
2024-07-15 10:42:30 +02:00
2024-07-18 15:08:12 -07:00
2024-04-25 20:56:24 -07:00
2024-07-03 22:40:36 -07:00
2024-05-22 11:31:10 +02:00
2024-07-09 17:01:46 +02:00
2024-05-14 00:31:43 -07:00
2024-05-15 17:02:08 -05:00
2024-05-21 10:09:28 -07:00
2024-06-05 17:03:57 +02:00
2024-07-15 08:02:26 -07:00
2024-05-13 18:19:09 -06:00
2024-06-24 16:41:23 -07:00
2024-07-11 18:11:31 -07:00
2024-05-28 14:34:15 +02:00
2024-06-10 13:15:40 +01:00
2024-07-08 13:47:25 -04:00
2024-07-08 13:47:27 -04:00
2024-05-20 11:09:20 -04:00
2024-07-08 13:47:51 -04:00
2024-07-08 13:47:26 -04:00
2024-05-08 08:41:29 -07:00
2024-06-28 10:37:29 +02:00
2024-06-16 10:17:57 +03:00
2024-06-24 12:53:43 -07:00
2024-07-15 14:20:22 -07:00
2024-05-03 07:26:38 +02:00
2024-06-10 11:14:52 +01:00
2024-05-01 23:18:48 +09:00
2024-05-03 07:49:13 -05:00
2024-07-08 17:40:30 -06:00
2024-05-19 22:29:43 -05:00
2024-04-25 20:56:14 -07:00
2024-04-25 20:56:35 -07:00
2024-07-03 22:40:38 -07:00
2024-06-24 20:52:10 -07:00
2024-04-25 20:56:04 -07:00
2024-04-25 20:56:44 -07:00
2024-07-03 22:40:37 -07:00
2024-04-25 12:37:12 -07:00
2024-07-03 16:44:22 +02:00
2024-05-02 17:48:09 -04:00
2024-06-28 09:52:05 +02:00
2024-07-19 12:39:34 -07:00
2024-07-04 14:40:53 +00:00
2024-07-04 14:40:53 +00:00
2024-06-12 13:20:56 +02:00
2024-07-19 19:03:18 -07:00
2024-06-17 15:15:46 +02:00
2024-06-17 15:15:46 +02:00
2024-04-25 20:55:59 -07:00
2024-07-09 13:26:37 +02:00
2024-06-15 10:43:05 -07:00
2024-05-05 17:53:42 -07:00
2024-07-15 08:02:26 -07:00
2024-06-18 13:28:26 +02:00
2024-07-09 12:59:52 +02:00
2024-06-26 11:17:20 +05:30
2024-05-28 21:53:51 +02:00
2024-06-24 21:41:41 +02:00
2024-05-31 12:57:43 +01:00
2024-06-05 16:52:36 +02:00
2024-07-04 15:41:44 +02:00
2024-04-27 11:17:48 -07:00
2024-06-07 19:46:39 +08:00
2024-04-25 20:55:59 -07:00
2024-07-10 17:52:47 +02:00
2024-07-13 21:36:36 -07:00
2024-06-03 17:26:26 -07:00
2024-07-04 13:54:17 -07:00
2024-07-10 23:05:45 +01:00
2024-07-02 19:49:54 +02:00
2024-04-25 20:55:57 -07:00
2024-05-13 18:09:56 -04:00
2024-05-05 17:53:45 -07:00
2024-07-10 07:59:03 +02:00
2024-07-18 13:36:33 -07:00
2024-06-18 14:04:03 +02:00
2024-04-25 20:56:13 -07:00
2024-06-13 14:26:50 -04:00
2024-05-02 16:28:15 +02:00
2024-06-24 16:14:48 +02:00
2024-06-24 16:09:37 +02:00
2024-06-28 10:48:23 +01:00
2024-04-25 20:55:59 -07:00
2024-07-02 18:59:33 -07:00
2024-07-02 12:06:50 +02:00
2024-05-19 09:21:03 -07:00
2024-07-03 12:24:20 +02:00
2024-07-16 19:28:34 -07:00
2024-04-25 20:55:59 -07:00
2024-06-05 16:52:36 +02:00
2024-06-18 10:13:37 -07:00
2024-06-20 15:19:17 -06:00
2024-05-04 18:57:21 +02:00
2024-07-05 09:35:51 +01:00
2024-06-06 08:55:20 -07:00
2024-07-03 22:40:37 -07:00
2024-07-10 07:59:03 +02:00
2024-06-10 15:03:30 -05:00
2024-07-18 12:19:20 -07:00
2024-06-03 15:16:15 +02:00
2024-06-04 15:56:45 +02:00
2024-07-04 02:02:33 -06:00
2024-07-09 13:26:34 +02:00
2024-07-12 15:14:56 +02:00
2024-05-06 17:39:09 +02:00
2024-06-21 18:10:15 +02:00
2024-06-03 11:18:51 +02:00
2024-07-05 02:12:27 +03:00
2024-06-04 10:37:44 -04:00
2024-05-04 04:25:37 -04:00
2024-06-17 20:42:57 +02:00
2024-05-04 18:45:11 +02:00
2024-05-06 12:05:00 +02:00
2024-07-01 15:46:36 +02:00
2024-05-15 12:34:46 -07:00
2024-06-12 08:44:28 +09:00
2024-07-10 13:58:24 +02:00
2024-06-21 12:47:01 -06:00
2024-05-31 15:15:51 -06:00
2024-07-17 05:20:58 -04:00
2024-07-04 11:00:31 -04:00
2024-04-26 13:26:53 +02:00
2024-04-25 20:55:57 -07:00
2024-04-25 20:56:04 -07:00
2024-05-27 13:51:29 +02:00
2024-06-24 20:36:08 +03:00
2024-06-24 18:16:44 +01:00
2024-06-07 06:24:16 -10:00
2024-05-05 17:53:51 -07:00
2024-05-19 09:21:03 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:47 -07:00