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

From: Chao Yu
Date: Tue Dec 08 2020 - 04:27:50 EST


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@xxxxxxxxxx>

Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>

Thanks,