[PATCH v2 3/3] erofs: simplify try_to_claim_pcluster()

Chao Yu yuchao0 at huawei.com
Tue Dec 8 20:26:30 AEDT 2020


On 2020/12/7 9:23, Gao Xiang wrote:
> simplify try_to_claim_pcluster() by directly using cmpxchg() here
> (the retry loop caused more overhead.) Also, move the chain loop
> detection in and rename it to z_erofs_try_to_claim_pcluster().

Looks more clean.

> 
> Signed-off-by: Gao Xiang <hsiangkao at redhat.com>

Reviewed-by: Chao Yu <yuchao0 at huawei.com>

Thanks,


More information about the Linux-erofs mailing list