Re: [PATCH] RT: Checks for cmpxchg in get_task_struct_rcu()

From: Daniel Walker
Date: Mon Sep 26 2005 - 09:45:04 EST


On Mon, 2005-09-26 at 08:25 +0200, Ingo Molnar wrote:
> * Daniel Walker <dwalker@xxxxxxxxxx> wrote:
>
> > Checks for cmpxchg in get_task_struct_rcu() . No race version.
>
> shouldnt we actually define a global, default cmpxchg() function, based
> on IRQ-disable - instead of open-coding one?

I was thinking it should be restructures so it just needs an atomic_inc
in this case. Considering that without cmpxchg() you must be on a UP
machine .

Daniel

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