On Tue, Jul 15, 2025 at 12:23:22PM +0530, Anshuman Khandual wrote:
On 01/07/25 8:23 PM, Leo Yan wrote:
The device mode is defined as local type. This type cannot promise SMP-safe access.
Change to atomic type and impose relax ordering, which ensures the SMP-safe synchronisation and the ordering between the mode setting and relevant operations.
But have we really faced such problems on real systems due to local_t or this is just an improvement ?
This is an improvement based on reading code. The reason is the variable is accessed by mutliple CPUs but not per-CPU access.
Thanks, Leo