Thomas Gleixner
66150d0dde
bpf, lpm: Make locking RT friendly
...
The LPM trie map cannot be used in contexts like perf, kprobes and tracing
as this map type dynamically allocates memory.
The memory allocation happens with a raw spinlock held which is a truly
spinning lock on a PREEMPT RT enabled kernel which disables preemption and
interrupts.
As RT does not allow memory allocation from such a section for various
reasons, convert the raw spinlock to a regular spinlock.
On a RT enabled kernel these locks are substituted by 'sleeping' spinlocks
which provide the proper protection but keep the code preemptible.
On a non-RT kernel regular spinlocks map to raw spinlocks, i.e. this does
not cause any functional change.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
Link: https://lore.kernel.org/bpf/20200224145644.602129531@linutronix.de
2020-02-24 16:20:10 -08:00
..
2020-02-24 16:20:10 -08:00
2020-02-10 17:07:05 -08:00
2020-02-06 11:40:09 +00:00
2020-02-05 18:53:41 +01:00
2020-02-24 16:18:20 -08:00
2020-01-19 22:42:06 +01:00
2020-02-09 12:11:12 -08:00
2019-11-27 11:42:01 -08:00
2020-02-04 03:05:26 +00:00
2020-02-11 10:11:02 +01:00
2020-01-02 16:15:04 +01:00
2020-01-25 12:00:40 -08:00
2020-02-15 12:51:22 -08:00
2020-02-21 11:22:15 -08:00
2020-02-24 16:18:20 -08:00
2019-12-18 18:07:31 +01:00
2019-06-05 17:37:17 +02:00
2019-05-30 11:26:37 -07:00
2019-11-10 11:56:55 -05:00
2019-12-09 15:19:03 -05:00
2019-07-08 18:55:42 -07:00
2019-07-08 18:55:42 -07:00
2019-11-23 09:56:02 -08:00
2019-06-05 17:37:17 +02:00
2020-02-21 11:22:15 -08:00
2020-02-04 03:05:26 +00:00
2019-10-29 10:01:12 +01:00
2019-06-05 17:36:37 +02:00
2020-01-28 10:07:09 -08:00
2019-06-19 17:09:06 +02:00
2020-01-14 09:56:31 -08:00
2019-09-25 17:51:39 -07:00
2020-01-03 11:17:14 -08:00
2020-01-25 07:12:40 -08:00
2019-06-03 15:49:06 +02:00
2020-01-29 19:56:50 -08:00
2019-10-06 09:11:37 -06:00
2020-01-09 13:23:40 +01:00
2019-11-11 20:10:01 +09:00
2019-07-12 11:05:40 -07:00
2019-11-15 10:48:37 +01:00
2019-08-29 15:10:10 +01:00
2020-02-09 16:05:50 -08:00
2019-12-08 14:37:36 +01:00
2019-11-12 11:35:32 +01:00
2019-12-04 19:44:14 -08:00
2020-01-08 16:32:55 +00:00
2019-09-06 23:58:44 +02:00
2020-01-08 16:32:55 +00:00
2020-01-08 16:32:55 +00:00
2020-01-08 16:32:55 +00:00
2020-01-09 12:40:13 +01:00
2019-05-30 11:26:39 -07:00
2019-10-16 09:20:58 -07:00
2020-02-04 03:05:26 +00:00
2020-01-31 10:30:41 -08:00
2019-08-05 18:39:56 -04:00
2019-08-05 18:39:56 -04:00
2020-02-04 03:05:26 +00:00
2019-12-04 19:44:12 -08:00
2020-01-14 12:20:48 +01:00
2019-12-11 16:37:02 +08:00
2019-11-25 09:15:42 +01:00
2019-08-19 21:54:16 -07:00
2019-11-15 23:49:22 +01:00
2020-01-13 21:49:36 +01:00
2020-02-04 03:05:26 +00:00
2020-01-18 13:51:39 +01:00
2019-09-24 15:54:09 -07:00
2019-12-25 10:41:20 +01:00
2020-02-24 16:20:09 -08:00
2020-01-26 10:54:47 +01:00
2020-01-28 15:43:00 +01:00
2019-07-08 11:01:13 -07:00
2019-11-11 10:30:59 +01:00
2020-01-17 10:19:21 +01:00
2019-11-15 14:38:30 +01:00
2020-01-28 10:09:51 +01:00
2019-11-26 13:03:56 -06:00
2020-01-09 16:42:29 -07:00
2019-12-09 12:37:51 -08:00
2019-12-04 15:18:39 +01:00
2019-08-01 14:30:22 -07:00
2019-07-18 11:51:00 -07:00
2019-12-18 18:07:31 +01:00
2019-07-18 17:08:07 -07:00
2020-02-07 15:34:12 +01:00
2019-07-08 19:36:47 -07:00
2019-07-08 19:36:47 -07:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:17 +02:00
2020-01-17 11:19:22 +01:00
2020-01-28 10:07:09 -08:00