Re: [patch] Real-Time Preemption, -RT-2.6.9-rc4-mm1-U8

From: Christoph Hellwig
Date: Thu Oct 21 2004 - 04:56:18 EST


On Thu, Oct 21, 2004 at 11:44:38AM +0200, Ingo Molnar wrote:
>
> * Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> > > The problem is that semaphores are hold by Process A and released by
> > > Process B, which makes Ingo's checks trigger
> >
> > Which is perfectly valid for a semaphore.
>
> yes, it is valid and perfectly fine code, but i'm trying to separate out
> the simple 'mutex' functionality (99% of the semaphore users are just
> that) and implement a 'counted semaphore' separately. This removes a
> number of implementational constraints from mutexes.

So leave the good old struct semaphore alone and introduce a mutex_t..

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