From: Tao Ma Date: Wed, 25 Feb 2009 01:40:26 +0000 (-0800) Subject: ocfs2: lock the metaecc process for xattr bucket X-Git-Tag: v2.6.29-rc7~44^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8b9cf9a7cd25ba65166116d0a958f0bc709f0a7;p=pandora-kernel.git ocfs2: lock the metaecc process for xattr bucket For other metadata in ocfs2, metaecc is checked in ocfs2_read_blocks with io_mutex held. While for xattr bucket, it is calculated by the whole buckets. So we have to add a spin_lock to prevent multiple processes calculating metaecc. Signed-off-by: Tao Ma Tested-by: Tristan Ye Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed