[lkml]   [1999]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: MM deadlock [was: Re: arca-vm-8...]

On Tue, 12 Jan 1999, Alan Cox wrote:

> > The problem is that "owner" can be stale, and can be updated outside the
> > semaphore spinlock by a successful down() - which means that there are no
> > synchronizing primitives there to guarantee that the slow part sees the
> > new owner.
> The only instruction I can see that can adjust both the count and owner
> together is cmpxchg8, and I don't see a good way to use it.

we dont have to handle count and owner atomically across all CPUs. We have
to guarantee critical section atomicity, and we have to guarantee that
recursive down()'s are properly resolved _iff_ we are the 'owner' of the
lock. But this is only relevant to the 'owner'. (thus it doesnt have to be
atomic, only it has to be within the critical section)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:49    [W:0.082 / U:10.036 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site