]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: lock the metaecc process for xattr bucket
authorTao Ma <tao.ma@oracle.com>
Wed, 25 Feb 2009 01:40:26 +0000 (17:40 -0800)
committerMark Fasheh <mfasheh@suse.com>
Thu, 26 Feb 2009 19:51:11 +0000 (11:51 -0800)
commit3bced0a5eafcb4fe85a245b1c1982083569f51fb
tree81ab9d6d0be93e57bcb17130abed3516574b3752
parentde5405b1c5ba4f995d4865ace22d3791349c241a
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 <tao.ma@oracle.com>
Tested-by: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/ocfs2.h
fs/ocfs2/super.c
fs/ocfs2/xattr.c