Re: [PATCH 01/12] mutex: add atomic_dec_and_mutex_lock

From: Ingo Molnar
Date: Wed Apr 29 2009 - 08:00:45 EST



* Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Mon, 27 Apr 2009 17:53:05 -0400
> Eric Paris <eparis@xxxxxxxxxx> wrote:
>
> > Much like the atomic_dec_and_lock() function in which we take and hold a
> > spin_lock if we drop the atomic to 0 this function takes and holds the
> > mutex if we dec the atomic to 0.
>
> I sucked these patches into -mm, mainly for a bit of compile-time
> and runtime testing.

the locking API bit is already in the locking tree:

9ab772c: mutex: add atomic_dec_and_mutex_lock()

I added it 23 days ago. Please dont add it to -mm a second time ;-)

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