Re: sched domains bringup race?

From: Nick Piggin
Date: Fri Jul 16 2004 - 00:29:03 EST


Nick Piggin wrote:
Dave Hansen wrote:

On Thu, 2004-07-15 at 20:03, Nick Piggin wrote:

It shouldn't because sched_init sets up dummy domains for
all runqueues.

Obviously something is going wrong somewhere though.



Hmmm, but there still might be some concurrency problems, right? There
isn't any locking while the setup is being done, so are all of the
intermediate initialization states valid? Or, could one of the CPUs be
catching the init code in the middle of an operation?


cpu_attach_domain is supposed to be able to do the switchover
without any races.

Although the sched_domain_debug is definitely racy. It should really
be locking each runqueue before traversing its domains. Just undef
SCHED_DOMAIN_DEBUG to be sure...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/