lkml.org 
[lkml]   [2018]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 02/14] net: sched: change type of reference and bind counters
    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

    \
     
     \ /
      Last update: 2018-05-19 23:05    [W:3.703 / U:0.140 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site