On 9/15/22 8:42 PM, Jia Zhu wrote:
>
> +static void erofs_fscache_domain_put(struct erofs_domain *domain)
> +{
> + if (!domain)
> + return;
> + mutex_lock(&erofs_domain_list_lock);
> + if (refcount_dec_and_test(&domain->ref)) {
> + list_del(&domain->list);
> + fscache_relinquish_volume(domain->volume, NULL, false);
> + mutex_unlock(&erofs_domain_list_lock);
I think we can mutex_unlock as long as the domain is removed from the list.
Otherwise LGTM.
Reviewed-by: Jingbo Xu <[email protected]>
--
Thanks,
Jingbo
- [PATCH V4 0/6] Introduce erofs shared domain Jia Zhu
- [PATCH V4 1/6] erofs: use kill_anon_super() to kill super in... Jia Zhu
- [PATCH V4 2/6] erofs: code clean up for fscache Jia Zhu
- [PATCH V4 3/6] erofs: introduce fscache-based domain Jia Zhu
- Re: [PATCH V4 3/6] erofs: introduce fscache-based domain JeffleXu
- Re: [PATCH V4 3/6] erofs: introduce fscache-based domain JeffleXu
- [PATCH V4 4/6] erofs: introduce a pseudo mnt to manage share... Jia Zhu
- [PATCH V4 5/6] erofs: Support sharing cookies in the same do... Jia Zhu
- [PATCH V4 6/6] erofs: introduce 'domain_id' mount option Jia Zhu
