Re: [PATCH 2/2] cpuhotplug: introduce try_get_online_cpus()

From: Rusty Russell
Date: Mon Jun 01 2009 - 03:32:04 EST


On Sat, 30 May 2009 06:01:18 am Andrew Morton wrote:
> I do think that we should look at
> alternative (non-trylocky) ways of fixing them.

Speculating: we could add a "keep_cpu()" (FIXME: improve name) which is kind
of like get_cpu() only doesn't disable preemption and only stops *this* cpu
from going down.

Not sure where that gets us, but if someone's going to dig deep into this it
might help.

Thanks,
Rusty.
--
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/