lkml.org 
[lkml]   [2012]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC: mutex: hung tasks on SMP platforms with asm-generic/mutex-xchg.h
On Tue, Aug 07, 2012 at 06:33:44PM +0100, Will Deacon wrote:
> What I think is happening is that B writes the -1 in __mutex_lock_common
> and, after seeing a NULL owner (C may not have set that yet), drops through
> to the:
>
> if (atomic_xchg(&lock->count, -1) == 1)
> goto done;

Sorry, should have proofread that. I meant to say:

What I think is happening is that B writes the -1 in __mutex_lock_common
after seeing a NULL owner (C may not have set that yet) and dropping through
to the:

if (atomic_xchg(&lock->count, -1) == 1)
goto done;


Will


\
 
 \ /
  Last update: 2012-08-07 20:21    [W:0.115 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site