Skip to content
Commit c8b9cf9a authored by Tao Ma's avatar Tao Ma Committed by Mark Fasheh
Browse files

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: default avatarTao Ma <tao.ma@oracle.com>
Tested-by: default avatarTristan Ye <tristan.ye@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 89a907af
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment