[Devel] Re: [ckrm-tech] [PATCH 4/13] BC: context handling

Paul Menage menage at google.com
Wed Nov 22 23:48:56 PST 2006


On 11/9/06, Kirill Korotaev <dev at sw.ru> wrote:
> +
> +int bc_task_move(int pid, struct beancounter *bc, int whole)
> +{

...

> +
> +       down_write(&mm->mmap_sem);
> +       err = stop_machine_run(do_set_bcid, &data, NR_CPUS);
> +       up_write(&mm->mmap_sem);

Isn't this a little heavyweight for moving a task into/between beancounters?

Paul




More information about the Devel mailing list