lkml.org 
[lkml]   [2017]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions
On Fri, Sep 01, 2017 at 11:50:03PM +0200, Peter Zijlstra wrote:
> > Did you read the other other part of the description?
> >
> > Further, both functions can be used to accurately trace the refcount
> > (refcount_inc() followed by refcount_read() can't be considered
> > accurate).
>
> I must admit to having overlooked that. But can we treat the two issues
> separately? They are quite distinct.

So for tracing purposes inc_return/dec_return don't cover the full set.

In particular: inc_not_zero, dec_not_one and dec_and_*lock are not
covered.

dec_if_one I suppose we only care about the success case, in which case
we knew it was one by inference.

\
 
 \ /
  Last update: 2017-09-02 00:04    [W:0.086 / U:1.816 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site