Re: [RFC] unify semaphore implementations

Trond Myklebust
2005-04-30T16:50:16Z

On lau , 2005-04-30 at 11:49 +1000, Paul Mackerras wrote:
> Benjamin LaHaise writes:
>
> > There are at least two users who need asynchronous semaphore/mutex
> > operations: aio_write (which needs to acquire i_sem), and nfs.
>
> What do you mean by asynchronous semaphore/mutex operations? Are you
> talking about a down operation that will acquire the semaphore if it
> is free, but if not, arrange for a callback and return immediately, or
> something?

Yes. See the iosem patches I posted a couple of weeks ago.

Cheers,
Trond

--
Trond Myklebust <trond.myklebust@fys.uio.no>