Willy Tarreau
9f5cb435b6
MINOR: stick-table: move the write lock inside stktable_touch_with_exp()
...
Taking the write lock prior to entering that function is a problem
because this function is full of conditions that most of the time can
lead to eliminating the lock.
This commit first moves the write lock inside the function and passes
the extra argument required to implement stktable_touch_remote() and
stktable_touch_local(). It also renames the function to remove the
underscores since there's no other variant and it's exported under
this name (probably an old rename that was not propagated). The code
was stressed under 48 threads using 3 trackers on the same table. It
already shows a tiny 3% improvement from 187k to 193k rps.
2022-10-12 14:19:05 +02:00
..
2020-11-05 19:27:09 +01:00
2022-03-29 18:01:37 +02:00
2021-12-16 17:31:57 +01:00
2022-03-30 11:19:22 +02:00
2022-09-08 16:21:22 +02:00
2022-09-08 16:21:22 +02:00
2020-06-11 10:18:59 +02:00
2021-03-26 15:28:33 +01:00
2022-09-17 11:27:09 +02:00
2022-09-08 14:30:38 +02:00
2021-09-02 19:43:20 +02:00
2021-07-16 19:18:41 +02:00
2022-01-28 19:04:02 +01:00
2020-07-05 21:32:47 +02:00
2020-06-11 10:18:59 +02:00
2022-04-25 16:09:26 +02:00
2022-02-24 11:00:03 +01:00
2021-04-13 17:28:13 +02:00
2020-06-11 10:18:59 +02:00
2022-03-11 16:59:14 +01:00
2022-09-08 14:19:15 +02:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:57 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-10-13 11:28:08 +02:00
2021-07-20 18:03:08 +02:00
2021-09-15 11:07:18 +02:00
2022-04-27 18:07:24 +02:00
2022-09-09 16:15:10 +02:00
2022-05-27 19:33:34 +02:00
2022-05-27 19:33:35 +02:00
2022-05-27 19:33:35 +02:00
2022-08-17 10:45:22 +02:00
2022-05-06 18:33:22 +02:00
2022-09-24 15:56:25 +02:00
2022-09-21 09:06:28 +02:00
2022-05-08 10:35:39 +02:00
2022-06-08 12:17:22 +02:00
2021-04-22 16:08:25 +02:00
2020-06-11 10:18:57 +02:00
2022-10-03 12:06:36 +02:00
2022-10-03 12:06:36 +02:00
2021-02-01 15:16:33 +01:00
2022-07-15 19:43:10 +02:00
2022-07-15 19:43:10 +02:00
2022-07-01 19:26:35 +02:00
2022-08-06 16:51:20 +02:00
2022-05-11 15:20:10 +02:00
2020-06-11 10:18:59 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-11-03 17:16:46 +01:00
2021-05-09 06:50:46 +02:00
2021-02-20 12:38:18 +01:00
2021-10-08 17:22:26 +02:00
2021-07-06 07:24:42 +02:00
2021-03-05 08:30:08 +01:00
2021-10-07 01:41:14 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:57 +02:00
2022-09-12 19:33:07 +02:00
2022-10-04 08:38:47 +02:00
2021-05-09 06:50:46 +02:00
2020-11-24 14:17:32 +01:00
2021-03-10 10:44:20 +01:00
2021-03-10 10:44:20 +01:00
2020-06-11 10:18:58 +02:00
2021-04-11 11:11:27 +02:00
2022-10-12 14:19:05 +02:00
2020-06-11 10:18:58 +02:00
2022-09-29 10:53:15 +02:00
2022-07-01 19:15:14 +02:00
2021-09-23 16:13:17 +02:00
2022-01-28 19:04:02 +01:00
2021-02-08 10:49:08 +01:00
2022-05-30 09:59:26 +02:00
2022-05-30 09:59:26 +02:00
2022-09-16 13:53:30 +02:00
2020-06-11 10:18:56 +02:00
2020-06-11 10:18:57 +02:00
2022-03-30 14:56:10 +02:00
2022-06-19 17:58:32 +02:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:57 +02:00
2020-12-22 10:18:07 +01:00
2020-06-11 10:18:58 +02:00
2021-11-18 10:50:58 +01:00
2022-09-09 17:18:57 +02:00
2022-05-27 19:33:35 +02:00
2022-09-13 17:12:38 +02:00
2022-09-14 14:34:39 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2022-08-18 16:13:33 +02:00
2022-03-02 14:50:38 +01:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:57 +02:00
2021-10-14 16:38:07 +02:00
2022-07-06 17:54:03 +02:00
2022-09-09 16:59:29 +02:00
2022-05-30 16:25:16 +02:00
2022-04-22 15:45:47 +02:00
2022-04-22 15:45:47 +02:00
2022-04-14 16:57:12 +02:00
2022-06-21 20:29:57 +02:00
2020-06-11 10:18:56 +02:00
2021-10-18 16:02:29 +02:00
2021-10-14 16:38:14 +02:00
2021-10-07 01:41:14 +02:00
2021-05-31 10:55:51 +02:00
2021-10-07 01:41:14 +02:00
2020-06-11 10:18:58 +02:00
2021-10-07 01:41:14 +02:00
2020-06-11 10:18:58 +02:00
2021-10-07 01:41:14 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:56 +02:00
2022-09-27 08:04:08 +02:00
2022-10-03 16:25:17 +02:00
2022-09-09 17:23:01 +02:00
2021-04-07 09:18:34 +02:00
2022-03-17 19:53:46 +01:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:58 +02:00
2022-03-22 09:25:52 +01:00
2020-11-05 19:27:03 +01:00
2022-09-15 11:01:59 +02:00
2022-09-12 19:33:07 +02:00
2022-09-20 15:35:29 +02:00
2022-10-03 16:25:17 +02:00
2021-11-10 15:53:01 +01:00
2022-01-28 23:52:36 +01:00
2021-10-07 01:41:14 +02:00
2020-06-11 10:18:59 +02:00
2022-08-06 17:12:51 +02:00
2022-07-01 15:54:23 +02:00
2021-09-23 15:27:25 +02:00
2022-05-27 19:33:35 +02:00
2022-05-27 19:33:35 +02:00
2022-04-21 14:54:45 +02:00
2021-10-07 01:41:14 +02:00
2021-05-25 08:44:48 +02:00
2020-06-11 10:18:58 +02:00
2022-05-17 16:13:22 +02:00
2021-10-07 01:41:14 +02:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:57 +02:00
2022-08-09 09:11:27 +02:00
2022-03-02 18:22:08 +01:00
2022-09-08 14:19:15 +02:00
2020-09-12 20:56:41 +02:00
2021-05-31 10:50:32 +02:00
2022-03-04 08:58:32 +01:00
2020-12-08 14:54:08 +01:00
2020-12-08 14:54:08 +01:00
2022-03-04 08:58:32 +01:00
2020-12-08 14:54:08 +01:00
2020-06-11 10:18:58 +02:00
2021-01-04 10:09:02 +01:00
2022-05-20 18:39:43 +02:00
2021-10-27 17:41:07 +02:00
2022-09-13 17:12:38 +02:00
2022-09-09 17:23:01 +02:00
2022-09-20 15:35:33 +02:00
2022-09-20 15:35:09 +02:00
2022-08-17 11:04:53 +02:00
2021-09-23 15:27:25 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-10-07 01:41:14 +02:00
2021-06-24 10:52:31 +02:00
2022-07-29 17:32:05 +02:00
2022-10-03 16:25:17 +02:00
2022-10-10 11:48:27 +02:00
2022-10-03 16:25:17 +02:00
2022-10-03 16:25:17 +02:00
2022-07-15 14:57:49 +02:00
2022-10-03 16:25:17 +02:00
2022-05-30 16:37:17 +02:00
2022-10-03 16:25:17 +02:00
2022-01-26 16:13:51 +01:00
2022-08-05 15:53:16 +02:00
2022-08-05 15:27:14 +02:00
2022-05-30 09:59:26 +02:00
2022-04-21 12:03:20 +02:00
2022-08-20 19:08:31 +02:00
2022-10-03 16:25:17 +02:00
2022-10-03 16:25:17 +02:00
2022-06-21 11:07:39 +02:00
2022-10-03 16:25:17 +02:00
2022-10-11 08:40:38 +02:00
2021-08-28 12:49:58 +02:00
2020-08-14 07:53:40 +02:00
2022-08-24 14:56:42 +02:00
2022-05-27 19:33:35 +02:00
2022-05-06 18:13:36 +02:00
2022-08-12 11:18:46 +02:00
2020-06-11 10:18:59 +02:00
2021-03-26 16:34:53 +01:00
2022-03-29 18:01:37 +02:00
2022-05-27 19:33:35 +02:00
2022-10-03 16:25:17 +02:00
2022-08-03 11:28:52 +02:00
2022-05-02 17:51:51 +02:00
2022-10-03 12:06:36 +02:00
2021-06-15 16:52:42 +02:00
2021-06-15 16:52:42 +02:00
2022-09-09 17:46:45 +02:00
2020-06-11 10:18:59 +02:00
2021-09-15 11:07:18 +02:00
2022-08-12 11:18:46 +02:00
2022-09-13 17:03:30 +02:00
2020-12-04 15:08:00 +01:00
2020-10-15 21:47:56 +02:00
2022-01-28 19:04:02 +01:00
2022-01-28 19:04:02 +01:00
2021-08-05 10:07:43 +02:00
2020-06-11 10:18:58 +02:00
2022-03-30 14:55:53 +02:00
2022-08-19 19:58:53 +02:00
2021-10-07 01:41:14 +02:00
2021-03-23 19:29:46 +01:00
2022-04-27 16:53:43 +02:00
2022-09-07 09:33:46 +02:00
2021-08-26 19:48:34 +02:00
2022-05-09 20:32:11 +02:00
2022-05-20 16:57:12 +02:00
2022-09-09 16:52:08 +02:00
2022-06-17 13:25:02 +02:00
2022-10-12 14:19:05 +02:00
2022-10-12 14:19:05 +02:00
2022-09-24 16:35:23 +02:00
2022-10-03 15:04:55 +02:00
2022-09-09 16:52:09 +02:00
2022-09-08 14:30:38 +02:00
2020-12-02 09:45:18 +01:00
2022-08-24 11:59:04 +02:00
2022-03-02 14:54:44 +01:00
2022-07-15 19:41:26 +02:00
2022-07-15 20:25:41 +02:00
2021-10-07 01:41:14 +02:00
2021-10-08 17:22:26 +02:00
2022-09-08 14:19:15 +02:00
2022-07-01 19:15:15 +02:00
2021-03-23 15:32:22 +01:00
2022-09-29 10:53:15 +02:00
2021-12-21 15:53:19 +01:00
2022-03-02 14:53:00 +01:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:58 +02:00
2021-04-19 09:05:57 +02:00
2021-05-11 17:24:32 +02:00
2022-01-03 14:40:58 +01:00
2021-09-08 15:44:45 +02:00
2022-05-31 17:05:27 +02:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:59 +02:00
2021-09-11 20:37:50 +02:00