]> git.baikalelectronics.ru Git - kernel.git/commit
s390/idle: fix suspicious RCU usage
authorPeter Zijlstra <peterz@infradead.org>
Tue, 8 Sep 2020 13:30:31 +0000 (15:30 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 14 Sep 2020 08:08:07 +0000 (10:08 +0200)
commit5c77c8143439c98d6dd7593bf4a93d7266add3df
treeec197b8d43125473ab21a0a87cc9a1f4fccc6f89
parent7da1f2558b72353f4a26d78707b272213de86926
s390/idle: fix suspicious RCU usage

After commit 69a3f3aff657 ("lockdep,trace: Expose tracepoints") the
lock tracepoints are visible to lockdep and RCU-lockdep is finding a
bunch more RCU violations that were previously hidden.

Switch the idle->seqcount over to using raw_write_*() to avoid the
lockdep annotation and thus the lock tracepoints.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/idle.c