Files
kernel/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-11-23 19:13:00 +01:00
2021-10-18 14:43:23 -06:00
2021-11-12 10:19:09 -08:00
2021-11-17 10:36:15 -05:00
2021-10-25 12:01:14 +05:30
2021-11-17 10:36:35 -05:00
2021-10-18 07:49:38 -04:00
2021-11-15 07:53:10 -08:00
2021-10-18 07:49:39 -04:00
2021-11-06 14:08:17 -07:00
2021-11-10 21:16:56 +00:00
2021-11-16 19:07:53 -08:00
2021-10-18 07:49:39 -04:00
2021-11-17 10:36:35 -05:00
2021-10-18 07:49:39 -04:00
2021-10-18 17:20:50 +02:00
2021-10-30 16:37:28 +02: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-11-03 11:41:25 -07:00
2021-12-08 17:58:59 -08:00
2021-10-19 23:44:30 +08:00