Files
linux/include/linux
Sebastian Andrzej Siewior 3c118547f8 u64_stats: Disable preemption on 32bit UP+SMP PREEMPT_RT during updates.
On PREEMPT_RT the seqcount_t for synchronisation is required on 32bit
architectures even on UP because the softirq (and the threaded IRQ handler) can
be preempted.

With the seqcount_t for synchronisation, a reader with higher priority can
preempt the writer and then spin endlessly in read_seqcount_begin() while the
writer can't make progress.

To avoid such a lock up on PREEMPT_RT the writer must disable preemption during
the update. There is no need to disable interrupts because no writer is using
this API in hard-IRQ context on PREEMPT_RT.

Disable preemption on 32bit-RT within the u64_stats write section.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-12-13 12:42:08 +00:00
..
2021-07-21 19:54:21 -07:00
2021-09-20 12:43:34 +01:00
2021-08-29 14:47:42 +03:00
2021-11-23 19:13:00 +01:00
2021-05-06 19:24:11 -07:00
2021-10-07 16:51:57 +02:00
2021-04-14 16:30:30 +03:00
2021-10-18 14:43:23 -06:00
2021-05-24 21:13:05 -07:00
2021-11-12 10:19:09 -08:00
2021-11-17 10:36:15 -05:00
2021-02-26 09:41:03 -08:00
2021-04-08 16:04:20 -07:00
2021-09-08 15:32:35 -07:00
2021-10-25 12:01:14 +05:30
2021-07-20 09:20:49 -07:00
2021-03-22 03:57:39 +01:00
2021-08-26 15:32:28 -04:00
2021-07-27 11:00:36 +02:00
2021-09-06 07:20:56 -04:00
2021-04-12 15:04:23 +02:00
2021-11-17 10:36:35 -05:00
2021-06-25 19:57:01 -04:00
2021-07-26 15:09:44 +02:00
2021-07-27 20:11:45 +01:00
2021-07-27 20:11:44 +01:00
2021-10-18 07:49:38 -04:00
2021-11-15 07:53:10 -08:00
2021-08-05 11:46:42 +01:00
2021-10-05 06:54:16 -05:00
2021-07-27 17:05:06 +01:00
2021-06-01 10:29:21 +01:00
2021-02-26 09:41:03 -08:00
2021-10-18 07:49:39 -04:00
2021-06-17 13:09:27 -04:00
2021-06-15 17:46:57 +02:00
2021-09-30 12:46:44 -06:00
2021-07-01 11:06:02 -07:00
2021-09-27 09:27:29 -04:00
2021-11-06 14:08:17 -07:00
2021-07-01 11:06:05 -07:00
2021-08-23 13:19:12 +02:00
2021-09-21 13:44:55 -07:00
2021-11-10 21:16:56 +00:00
2021-11-16 19:07:53 -08:00
2021-09-17 13:52:17 +01:00
2021-10-18 07:49:39 -04:00
2021-09-27 09:27:29 -04:00
2021-11-17 10:36:35 -05:00
2021-02-26 09:40:59 -08:00
2021-09-27 17:00:21 +02:00
2021-06-16 17:20:40 -05:00
2021-07-06 10:37:46 -05:00
2021-10-14 13:29:18 +02:00
2021-06-07 14:11:47 -07:00
2021-08-18 22:08:24 +02:00
2021-03-06 12:40:22 +01:00
2021-10-07 16:51:57 +02:00
2021-10-18 07:49:39 -04:00
2021-10-18 17:20:50 +02:00
2021-08-17 17:50:51 +02:00
2021-10-30 16:37:28 +02:00
2021-03-18 12:58:27 -04:00
2021-11-16 13:10:34 +00:00
2021-11-06 13:30:43 -07:00
2021-10-26 14:58:45 +01:00
2021-05-10 16:03:35 -07:00
2021-08-06 13:41:48 -07:00
2021-08-19 09:02:55 +09:00
2021-06-24 15:49:32 +02:00
2021-11-03 11:41:25 -07:00
2021-07-01 11:06:03 -07:00
2021-10-07 13:51:11 +02:00
2021-09-22 16:59:13 +02:00
2021-09-08 15:32:35 -07:00
2021-03-30 17:06:49 -07:00
2021-08-11 06:44:24 -04:00
2021-12-08 17:58:59 -08:00
2021-03-30 13:42:33 -04:00
2021-10-19 23:44:30 +08:00