[PATCH chao/erofs-dev rebased v2 07/12] staging: erofs: fix `erofs_workgroup_{try_to_freeze, unfreeze}'
Chao Yu
yuchao0 at huawei.com
Tue Nov 20 14:33:47 AEDT 2018
On 2018/11/14 23:25, Gao Xiang wrote:
> There are two minor issues in the current freeze interface:
>
> 1) Freeze interfaces have not related with CONFIG_DEBUG_SPINLOCK,
> therefore fix the incorrect conditions;
>
> 2) For SMP platforms, it should also disable preemption before
> doing atomic_cmpxchg in case that some high priority tasks
> preempt between atomic_cmpxchg and disable_preempt, then spin
> on the locked refcount later.
>
> Signed-off-by: Gao Xiang <gaoxiang25 at huawei.com>
Reviewed-by: Chao Yu <yuchao0 at huawei.com>
Thanks,
More information about the Linux-erofs
mailing list