Re: [RFC/PATCH] FUSYN Realtime & robust mutexes for Linux, v2.3.1

From: Linh Dang
Date: Thu Aug 05 2004 - 08:26:48 EST


Rusty Russell <rusty@xxxxxxxxxxxxxxx> wrote:

> I don't think this is neccessarily true: I think that platforms with
> 64-bit compare-and-exchange can do the whole thing in userspace.
> They would set the mutex and stamp in the thread ID simultanously,
> allowing for "dead thread" detection (ie. I didn't get the lock, and
> it's a robust mutex: check the holder is still alive).

Or for priority-inheritance: try get the lock, if failed raised the
holder's priority to mine if necessary.

>
> W/o 64-bit compare-and-exchange a 100% robust solution may not be
> possible though.

PPC arch can do a lot of things in a pseudo-atomic way.

>
> Thoughts?
> Rusty.

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