From: Nick Piggin Date: Mon, 26 Nov 2007 20:58:10 +0000 (-0600) Subject: JFS is missing a memory barrier X-Git-Tag: v2.6.25-rc1~1238^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54af6233d1cb84cdfaa6ea44ea0db0bcf518baac;p=pandora-kernel.git 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 Signed-off-by: Dave Kleikamp --- Reading git-diff-tree failed