diff options
| author | Dou Liyang <[email protected]> | 2017-10-28 06:06:44 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-10-30 08:17:29 +0000 |
| commit | ca5d376e17072c1b60c3fee66f3be58ef018952d (patch) | |
| tree | 9e955494aebbbdacb6d27b69838b67341813be97 /lib/assoc_array.c | |
| parent | block, locking/lockdep: Assign a lock_class per gendisk used for wait_for_com... (diff) | |
| download | kernel-ca5d376e17072c1b60c3fee66f3be58ef018952d.tar.gz kernel-ca5d376e17072c1b60c3fee66f3be58ef018952d.zip | |
x86/paravirt: Set up the virt_spin_lock_key after static keys get initialized
Commit:
9043442b43b1 ("locking/paravirt: Use new static key for controlling call of virt_spin_lock()")
sets the static virt_spin_lock_key to a value before jump_label_init()
has been called, which will result in a WARN().
Reorder the initialization sequence:
- Move the native_pv_lock_init() into native_smp_prepare_cpus()
- set the value in xen_init_lock_cpu()
to avoid calling into the not yet initialized static keys subsystem.
Suggested-by: Juergen Gross <[email protected]>
Reported-by: Juergen Gross <[email protected]>
Signed-off-by: Dou Liyang <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions
