staging: erofs: atomic_cond_read_relaxed on ref-locked workgroup
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 22 Nov 2018 17:16:01 +0000 (01:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:09:02 +0000 (10:09 +0100)
commitb0a18cab6aebc744b46860200509aa22a5dd042e
treed539ccb7222cd465e3376e9ae385de20fb46f83f
parent398102f64acd2103e4ec49c74e2b6f7438988d16
staging: erofs: atomic_cond_read_relaxed on ref-locked workgroup

commit df134b8d17b90c1e7720e318d36416b57424ff7a upstream.

It's better to use atomic_cond_read_relaxed, which is implemented
in hardware instructions to monitor a variable changes currently
for ARM64, instead of open-coded busy waiting.

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