Commit 948bbdb1 authored by Gao Xiang's avatar Gao Xiang Committed by Greg Kroah-Hartman

staging: erofs: add a full barrier in erofs_workgroup_unfreeze

Just like other generic locks, insert a full barrier
in case of memory reorder.
Reviewed-by: 's avatarChao Yu <>
Signed-off-by: 's avatarGao Xiang <>
Signed-off-by: 's avatarGreg Kroah-Hartman <>
parent 73f5c66d
......@@ -209,6 +209,11 @@ static inline bool erofs_workgroup_try_to_freeze(struct erofs_workgroup *grp,
static inline void erofs_workgroup_unfreeze(struct erofs_workgroup *grp,
int orig_val)
* other observers should notice all modifications
* in the freezing period.
atomic_set(&grp->refcount, orig_val);
Markdown is supported
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