lkml.org 
[lkml]   [2004]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Ext2-devel] Re: [Patch 7/10]: ext3 online resize: SMP locking for group metadata
On Fri, Oct 01, 2004 at 12:40:38PM +0100, Stephen C. Tweedie wrote:
> So I don't want to make it atomic if I can avoid it. It's just an
> unsigned long, and I don't know of any cases where a simple read
> colliding with a write is going to give the reader a corrupt value. As
> long as I get either the old or new value, everything should be fine
> with the read/write barriers as they are.

I think all Linux architectures guarantee atomic updates of a
register-sized naturally-aligned piece of memory.

--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [from the cache]
©2003-2011 Jasper Spaans