All of lore.kernel.org
 help / color / mirror / Atom feed
* lockdep: access percpu variable too early
@ 2013-02-28 15:48 Ming Lei
  2013-03-06 10:20 ` Ingo Molnar
  0 siblings, 1 reply; 5+ messages in thread
From: Ming Lei @ 2013-02-28 15:48 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar; +Cc: Linux Kernel Mailing List

Hi,

The percpu variables of 'lockdep_stats' and 'cpu_lock_stat'
may be accessed before percpu area is brought up in case of
CONFIG_DEBUG_LOCKDEP/CONFIG_LOCK_STAT, so these variables
in non-boot CPUs will be initialized incorrectly.

As far as I think of, there are several solutions for the
problem:

	1, just enable 'debug_locks' until percpu area is built
	2, define the two percpu variables in a simple/stupid
	percpu way inside lockdep
	3, clear these two percpu variables of non-boot CPUs
	just after percpu area is built.
	4, ignore the problem

Looks each approache have its own disadvantage, so what
is your opinion on the problem? or better approach?

Thanks,
--
Ming Lei

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-06 13:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-28 15:48 lockdep: access percpu variable too early Ming Lei
2013-03-06 10:20 ` Ingo Molnar
2013-03-06 10:30   ` Ming Lei
2013-03-06 10:34     ` Ingo Molnar
2013-03-06 13:37       ` Ming Lei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.