• Alan Stern's avatar
    tools/memory-model: Add a S lock-based external-view litmus test · 556bb7d2
    Alan Stern authored
    
    
    This commit adds a litmus test in which P0() and P1() form a lock-based S
    litmus test, with the addition of P2(), which observes P0()'s and P1()'s
    accesses with a full memory barrier but without the lock.  This litmus
    test asks whether writes carried out by two different processes under the
    same lock will be seen in order by a third process not holding that lock.
    The answer to this question is "yes" for all architectures supporting
    the Linux kernel, but is "no" according to the current version of LKMM.
    
    A patch to LKMM is under development.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: akiyks@gmail.com
    Cc: boqun.feng@gmail.com
    Cc: dhowells@redhat.com
    Cc: j.alglave@ucl.ac.uk
    Cc: linux-arch@vger.kernel.org
    Cc: luc.maranget@inria.fr
    C...
    556bb7d2
ISA2+pooncelock+pooncelock+pombonce.litmus 652 Bytes