Re: [PATCH -v4] generic-ipi: remove kmalloc()

From: Peter Zijlstra
Date: Tue Feb 17 2009 - 15:12:54 EST


On Tue, 2009-02-17 at 21:02 +0100, Oleg Nesterov wrote:

> Argh! Sorry-sorry-sorry. I managed to confused myself and you.
>
> Please return to the previous version. With this patch we do:
>
> func(info);
>
> if (!refs && wait)
> csd_complete();
>
> but we can't do csd_complete(), we can not be sure other CPUs
> has already passed this function call.
>
> Of course we can add another counter, but I don't think this
> worth the trouble.

Eek, you're right.

> As for the previous version. I am almost sure I missed something
> again, but do we really need both CSD_FLAG_WAIT and CSD_FLAG_LOCK
> flags? smp_call_function_many(wait => 1) can just wait for
> !CSD_FLAG_LOCK.

I suppose we can.

--
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/