Re: [PATCH 00/11] md: avoid counter operation conflicts

From: Yu Kuai
Date: Tue Mar 26 2024 - 10:03:02 EST


Hi,

在 2024/03/26 18:29, tada keisuke 写道:
Currently, active_aligned_reads and nr_pending used as counters are atomic types.
Therefore, when inc/dec in a multi-core results in conflicts.

I don't uderstand what's the problem here, what's wrong with atomic
types in a multi-core system?

Thanks,
Kuai