login
Header Space

 
 

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Satyam Sharma <ssatyam@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, David Howells <dhowells@...>, Andi Kleen <ak@...>, Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>
Date: Tuesday, July 24, 2007 - 7:32 am

Satyam Sharma wrote:


The system bus does not need to be serialised because the CPU already
holds the cacheline in exclusive state. That *is* the cache coherency
protocol.

The memory ordering is enforced by the CPU effectively preventing
speculative loads to pass the locked instruction and ensuring all
stores reach the cache before it is executed. (I say effectively
because the CPU might do clever tricks without you knowing).



Why?

-- 
SUSE Labs, Novell Inc.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/8] i386: bitops: Cleanup, sanitize, optimize, Satyam Sharma, (Mon Jul 23, 12:05 pm)
Re: [PATCH 0/8] i386: bitops: Cleanup, sanitize, optimize, Denis Vlasenko, (Mon Jul 30, 1:57 pm)
Re: [PATCH 0/8] i386: bitops: Cleanup, sanitize, optimize, Satyam Sharma, (Mon Jul 30, 9:07 pm)
Re: [PATCH 4/8] i386: bitops: Kill volatile-casting of memor..., Benjamin Herrenschmidt, (Tue Jul 24, 5:49 am)
[PATCH 3/8] i386: bitops: Rectify bogus "+m" constraints, Satyam Sharma, (Mon Jul 23, 12:05 pm)
[PATCH 2/8] i386: bitops: Rectify bogus "Ir" constraints, Satyam Sharma, (Mon Jul 23, 12:05 pm)
Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_..., Nick Piggin, (Tue Jul 24, 7:32 am)
Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_..., Jeremy Fitzhardinge, (Tue Jul 24, 3:48 am)
Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered..., Jeremy Fitzhardinge, (Tue Jul 24, 5:31 pm)
Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered..., Benjamin Herrenschmidt, (Tue Jul 24, 5:52 am)
Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered..., Benjamin Herrenschmidt, (Tue Jul 24, 5:36 pm)
Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered..., Benjamin Herrenschmidt, (Tue Jul 24, 5:37 pm)
Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered..., Benjamin Herrenschmidt, (Tue Jul 24, 6:32 pm)
Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered..., Jeremy Fitzhardinge, (Mon Jul 23, 1:49 pm)
[PATCH 1/8] i386: bitops: Update/correct comments, Satyam Sharma, (Mon Jul 23, 12:05 pm)
Re: [PATCH 7/8] i386: bitops: Kill needless usage of __asm__..., Jeremy Fitzhardinge, (Mon Jul 23, 12:23 pm)
Re: [PATCH 7/8] i386: bitops: Kill needless usage of __asm__..., Jeremy Fitzhardinge, (Mon Jul 23, 1:39 pm)
Re: [PATCH 7/8] i386: bitops: Kill needless usage of __asm__..., Jeremy Fitzhardinge, (Mon Jul 23, 2:28 pm)
Re: [PATCH 7/8] i386: bitops: Kill needless usage of __asm__..., Jeremy Fitzhardinge, (Mon Jul 23, 4:40 pm)
speck-geostationary