lkml.org 
[lkml]   [1999]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] new spinlock variant, spinlock-2.3.30-A4
Date
Friday, December 03, 1999 11:11 PM
Manfred <manfreds@colorfullife.com> wrote :

> if cpu2 gets the lock, then it has seen the "write LOCK_1" from cpu1.
> but this automagically means that it has also seen the "write DATA" from
> cpu1.

Exactly.
A process that try to spin_lock ( == read and set a memory address ) _must_
see
the unlocked value set by the exiting task and hence _must_ see all writes
mades by
the leaving process inside the locked section.

Cheers,
Davide.

--
"Debian, the Freedom in Freedom."




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:4.651 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site