Re: [PATCH 2/2] cpuhotplug: make get_online_cpus() scalability by using percpu counter

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Monday, April 12, 2010 - 11:16 am

On 04/12, Lai Jiangshan wrote:

Yes,


Heh. Since I never read the changelogs, I didn't even notice this was
one of the goals of your patch. I thought this is just the side-effect.

Yes, if we want to block the new readers, I don't see how it is possible
to avoid the counter in task_struct.

I can't judge whether this new member worth the trouble. Once again, I am
not arguing, just I don't know. And I think your patch is correct (apart
from pure theoretical race with cpu_hotplug_done afaics).

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/2] cpuhotplug: make get_online_cpus() scalabi ..., Oleg Nesterov, (Mon Apr 12, 11:16 am)