Re: [PATCH] mm/kasan: remove volatile keyword

2021-02-21 Thread Dmitry Vyukov
On Mon, Feb 22, 2021 at 6:22 AM Zhiyuan Dai wrote: > > Like volatile, the kernel primitives which make concurrent > access to data safe (spinlocks, mutexes, memory barriers, > etc.) are designed to prevent unwanted optimization. > > If they are being used properly, there will be no need to > use v

[PATCH] mm/kasan: remove volatile keyword

2021-02-21 Thread Zhiyuan Dai
Like volatile, the kernel primitives which make concurrent access to data safe (spinlocks, mutexes, memory barriers, etc.) are designed to prevent unwanted optimization. If they are being used properly, there will be no need to use volatile as well. If volatile is still necessary, there is almost