linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* initcall kmem_cache cpu 1 oops
@ 2003-05-06 12:28 Hugh Dickins
  2003-05-06 15:37 ` Manfred Spraul
  0 siblings, 1 reply; 4+ messages in thread
From: Hugh Dickins @ 2003-05-06 12:28 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Ingo Molnar, Manfred Spraul, linux-kernel

I don't know if it's right or wrong for initcalls to happen on cpus
other than 0.  But with CONFIG_NR_SIBLINGS_2 on 2*HT*P4 in 2.5.69-mm1
(I didn't try 2.5.68-mm, but 2.5.69 okay) I have sock_init run on cpu 0
setting sock_inode_cachep and its array[0], then later rtnetlink_init on
cpu 1, causing kmem_cache_alloc oops on NULL sock_inode_cachep->array[1]:
g_cpucache_up is still PARTIAL, cpucache_init is yet to be called.

Before 2.5.68-mm3 rtnetlink_init was invoked from within sock_init, but
it's now from a separate netlink_proto_init: so that's another source
of doubt.  For now I have CONFIG_NR_SIBLINGS_0 instead (from a vague
suspicion that CONFIG_SHARE_RUNQUEUE work might have caused unexpectedly
early switch from cpu 0 to 1), and that works around it for me: but I'm
not pointing any finger of blame, I don't know the axioms here at all.

Hugh


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

end of thread, other threads:[~2003-05-07 13:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-06 12:28 initcall kmem_cache cpu 1 oops Hugh Dickins
2003-05-06 15:37 ` Manfred Spraul
2003-05-06 20:16   ` Manfred Spraul
2003-05-07 13:28     ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).