aboutsummaryrefslogtreecommitdiffstats
path: root/init/init_task.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <[email protected]>2020-07-20 15:55:14 +0000
committerPeter Zijlstra <[email protected]>2020-07-29 14:14:24 +0000
commit859247d39fb008ea812e8f0c398a58a20c12899e (patch)
treec8cbe8dbf4fefa28a62622073a2cdd40a9dd36bb /init/init_task.c
parentlockdep: Add preemption enabled/disabled assertion APIs (diff)
downloadkernel-859247d39fb008ea812e8f0c398a58a20c12899e.tar.gz
kernel-859247d39fb008ea812e8f0c398a58a20c12899e.zip
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions