OSDN Git Service

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>
Fri, 23 Nov 2018 09:53:07 +0000 (10:53 +0100)
commitdf134b8d17b90c1e7720e318d36416b57424ff7a
tree29618c9a3dab4808d557d8309927e64a85e98f19
parent51232df5e4b268936beccde5248f312a316800be
staging: erofs: atomic_cond_read_relaxed on ref-locked workgroup

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