Re: [RFC 07/13] sched: Reduce stack size requirements inkernel/sched.c

From: Andrew Morton
Date: Sun Sep 07 2008 - 07:01:30 EST


On Sun, 07 Sep 2008 12:24:47 +0200 Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> get_online_cpus() can sleep, but you just disabled preemption with those
> get_cpumask_var() horribles!

make cpu_hotplug.refcount an atomic_t.

> Couldn't be arsed to look through the rest, but I really hate this
> cpumask_ptr() stuff that relies on disabling preemption.

that's harder to fix ;)
--
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/