OSDN Git Service

locking/lockdep: Only call init_rcu_head() after RCU has been initialized
authorBart Van Assche <bvanassche@acm.org>
Sun, 3 Mar 2019 18:19:01 +0000 (10:19 -0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 9 Mar 2019 13:15:51 +0000 (14:15 +0100)
commit0126574fca2ce0f0d5beb9dade6efb823ff7407b
tree835d78cfc847b097cbe8a62d44962e28d28ee769
parent3fe7522fb766f6ee76bf7bc2837f1e3cc52c4e27
locking/lockdep: Only call init_rcu_head() after RCU has been initialized

init_data_structures_once() is called for the first time before RCU has
been initialized. Make sure that init_rcu_head() is called before the
RCU head is used and after RCU has been initialized.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: longman@redhat.com
Link: https://lkml.kernel.org/r/c20aa0f0-42ab-a884-d931-7d4ec2bf0cdc@acm.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/lockdep.c