summaryrefslogtreecommitdiff
path: root/kernel/tracepoint.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <a.darwish@linutronix.de>2020-07-20 18:55:14 +0300
committerPeter Zijlstra <peterz@infradead.org>2020-07-29 17:14:24 +0300
commit859247d39fb008ea812e8f0c398a58a20c12899e (patch)
treec8cbe8dbf4fefa28a62622073a2cdd40a9dd36bb /kernel/tracepoint.c
parent8fd8ad5c5dfcb09cf62abadd4043eaf1afbbd0ce (diff)
downloadlinux-859247d39fb008ea812e8f0c398a58a20c12899e.tar.xz
seqlock: lockdep assert non-preemptibility on seqcount_t write
Preemption must be disabled before entering a sequence count write side critical section. Failing to do so, the seqcount read side can preempt the write side section and spin for the entire scheduler tick. If that reader belongs to a real-time scheduling class, it can spin forever and the kernel will livelock. Assert through lockdep that preemption is disabled for seqcount writers. Signed-off-by: Ahmed S. Darwish <a.darwish@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200720155530.1173732-9-a.darwish@linutronix.de
Diffstat (limited to 'kernel/tracepoint.c')
0 files changed, 0 insertions, 0 deletions