lkml.org 
[lkml]   [2009]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2009-04-29 14:03    [W:0.135 / U:0.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site