Re: [PATCH -next] secretmem: use ATOMIC_INIT() to initialize secretmem_users

From: Andrew Morton
Date: Wed Sep 07 2022 - 01:58:53 EST


On Tue, 6 Sep 2022 17:36:20 +0800 Xiu Jianfeng <xiujianfeng@xxxxxxxxxx> wrote:

> The variable secretmem_users is of atomic_t type, so initialize it
> properly with ATOMIC_INIT().
>

True, but there are many many cases where we initialize an atomic_t to
the all-zeroes pattern. So many that this should be considered
acceptable practice.