On Wed, 5 May 2010 14:21:48 +0300 Phil Carmody <ext-phil.2.carmody@xxxxxxxxx> wrote: > From: Phil Carmody <ext-phil.2.carmody@xxxxxxxxx> > > The bottom 4 hunks are atomically changing memory to which there > are no aliases as it's freshly allocated, so there's no need to > use atomic operations. > > The other hunks are just atomic_read and atomic_set, and do not > involve any read-modify-write. The use of atomic_{read,set} > doesn't prevent a read/write or write/write race, so if a race > were possible (I'm not saying one is), then it would still be > there even with atomic_set. > > See: > http://digitalvampire.org/blog/index.php/2007/05/13/atomic-cargo-cults/ > > Signed-off-by: Phil Carmody <ext-phil.2.carmody@xxxxxxxxx> > Acked-by: Kirill A. Shutemov <kirill@xxxxxxxxxxxxx> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>