staging: erofs: add a full barrier in erofs_workgroup_unfreeze
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 22 Nov 2018 17:16:03 +0000 (01:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:09:02 +0000 (10:09 +0100)
commit60ce4b5297971e089a69e103c606d83eb52a8f1e
tree03a73099750d661b6824d2d58f0926d48ad14a00
parent08ec9e6892cc792d7f8fe4d13bd8a0e91fb23488
staging: erofs: add a full barrier in erofs_workgroup_unfreeze

commit 948bbdb1818b7ad6e539dad4fbd2dd4650793ea9 upstream.

Just like other generic locks, insert a full barrier
in case of memory reorder.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/internal.h