Re: [PATCH 02/14] net: sched: change type of reference and bind counters
From: Vlad Buslov
Date: Sun May 20 2018 - 06:00:58 EST
On Sat 19 May 2018 at 21:04, Marcelo Ricardo Leitner <marcelo.leitner@xxxxxxxxx> wrote:
> On Mon, May 14, 2018 at 05:27:03PM +0300, Vlad Buslov wrote:
>> Change type of action reference counter to refcount_t.
>>
>> Change type of action bind counter to atomic_t.
>> This type is used to allow decrementing bind counter without testing
>> for 0 result.
>
> ... and in what does not testing for 0 result helps?
>
> Marcelo
Atomic operations don't WARN in this case.