Re: [PATCH v3 01/11] counters: Introduce counter_atomic* counters

2020-10-14 Thread Shuah Khan
On 10/13/20 5:27 AM, Mauro Carvalho Chehab wrote: Em Fri, 9 Oct 2020 09:55:56 -0600 Shuah Khan escreveu: Introduce Simple atomic counters. There are a number of atomic_t usages in the kernel where atomic_t api is used strictly for counting and not for managing object lifetime. In some cases,

Re: [PATCH v3 01/11] counters: Introduce counter_atomic* counters

2020-10-13 Thread Mauro Carvalho Chehab
Em Fri, 9 Oct 2020 09:55:56 -0600 Shuah Khan escreveu: > Introduce Simple atomic counters. > > There are a number of atomic_t usages in the kernel where atomic_t api > is used strictly for counting and not for managing object lifetime. In > some cases, atomic_t might not even be needed. > > Th

Re: [PATCH v3 01/11] counters: Introduce counter_atomic* counters

2020-10-09 Thread Peter Zijlstra
On Fri, Oct 09, 2020 at 09:55:56AM -0600, Shuah Khan wrote: > Introduce Simple atomic counters. > > There are a number of atomic_t usages in the kernel where atomic_t api > is used strictly for counting and not for managing object lifetime. In > some cases, atomic_t might not even be needed. > >

Re: [PATCH v3 01/11] counters: Introduce counter_atomic* counters

2020-10-09 Thread Kees Cook
On Fri, Oct 09, 2020 at 09:55:56AM -0600, Shuah Khan wrote: > Introduce Simple atomic counters. > > There are a number of atomic_t usages in the kernel where atomic_t api > is used strictly for counting and not for managing object lifetime. In > some cases, atomic_t might not even be needed. > >

[PATCH v3 01/11] counters: Introduce counter_atomic* counters

2020-10-09 Thread Shuah Khan
Introduce Simple atomic counters. There are a number of atomic_t usages in the kernel where atomic_t api is used strictly for counting and not for managing object lifetime. In some cases, atomic_t might not even be needed. The purpose of these counters is to clearly differentiate atomic_t counter