]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
JFS is missing a memory barrier
authorNick Piggin <npiggin@suse.de>
Mon, 26 Nov 2007 20:58:10 +0000 (14:58 -0600)
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>
Thu, 3 Jan 2008 19:11:44 +0000 (13:11 -0600)
commit54af6233d1cb84cdfaa6ea44ea0db0bcf518baac
tree031f07f853e18e2fe09b054a3a8e432424362e60
parent67e6682f18b3bf812a994ae027ff87174a297ae8
JFS is missing a memory barrier

JFS is missing a memory barrier needed to close the critical section before
clearing the lock bit. Use lock bitops for this.

unlock_page() has a second barrier after clearing the lock, which is
required because it checks whether the waitqueue is active without locks.
Such a barrier is not required here because the waitqueue spinlock is
always taken (something to think about if performance is an issue).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
fs/jfs/jfs_metapage.c