Messages in this thread | | | Date | Wed, 29 Apr 2009 13:59:43 +0200 | From | Ingo Molnar <> | Subject | Re: [PATCH 01/12] mutex: add atomic_dec_and_mutex_lock |
| |
* Andrew Morton <akpm@linux-foundation.org> wrote:
> On Mon, 27 Apr 2009 17:53:05 -0400 > Eric Paris <eparis@redhat.com> 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
| |