Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1725384
| Path | csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Peter Zijlstra <peterz@infradead.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions |
| Date | Sat, 02 Sep 2017 00:10:01 +0200 |
| Message-ID | <ul2it-2FF-5@gated-at.bofh.it> (permalink) |
| References | <ukXiN-7Ew-1@gated-at.bofh.it> <ukWmK-71s-3@gated-at.bofh.it> <ukWmL-71s-37@gated-at.bofh.it> <ul1w6-288-11@gated-at.bofh.it> <ul28O-2mX-29@gated-at.bofh.it> |
| X-Original-To | David Howells <dhowells@redhat.com> |
| Dkim-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HX1a076dcEt24ZT2KVYQfQBVPJMgEM96ilBzIK7Rwwc=; b=s+oDNj0P+hSSjwBeLXpi0qR/h j+BeJDH+A84v86lae9S+m1yAEPTy3WRvf2Qgb5765pzlvW8tqHtfhao/DP92XjD7o8XoXZyaCA5ME 1tZA30eDd4a5SOEexZ3B4MIVLBkK7eZ0QTpj5weU3psdlsy5rYdbjeCoGyFhvvOmsJsZ5gLwN3aEq t00PKS4kS9RABnHiztzYAWR4JNTJnrSChsj1wZCq0oSFaOfkMyAvAGJLn4U/QYBYbxA9m0U16NfTs nFI0SvHuQ1zvgaRX9QmJ2Kizz2LzYWs1ti3aZXQiLgV0Tat8GVDY51PJ7b8okJrkRrb2jzOCDR4lI awVAFmwOw==; |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.22.1 (2013-10-16) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 17 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, Kees Cook <keescook@chromium.org>, linux-kernel@vger.kernel.org |
| X-Original-Date | Sat, 2 Sep 2017 00:03:46 +0200 |
| X-Original-Message-ID | <20170901220346.GC439@worktop> |
| X-Original-References | <20170901164233.wu4fdljpivzf5idb@hirez.programming.kicks-ass.net> <150428045304.25051.1778333106306853298.stgit@warthog.procyon.org.uk> <150428046185.25051.3518486828049323804.stgit@warthog.procyon.org.uk> <3696.1504300539@warthog.procyon.org.uk> <20170901215003.GA17526@worktop.programming.kicks-ass.net> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1725384 |
Show key headers only | View raw
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.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions David Howells <dhowells@redhat.com> - 2017-09-01 17:50 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions Peter Zijlstra <peterz@infradead.org> - 2017-09-01 18:50 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions David Howells <dhowells@redhat.com> - 2017-09-01 23:20 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions Peter Zijlstra <peterz@infradead.org> - 2017-09-02 00:00 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions Peter Zijlstra <peterz@infradead.org> - 2017-09-02 00:10 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions David Howells <dhowells@redhat.com> - 2017-09-02 01:00 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions Peter Zijlstra <peterz@infradead.org> - 2017-09-04 09:40 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions Christoph Hellwig <hch@infradead.org> - 2017-09-04 17:40 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions David Howells <dhowells@redhat.com> - 2017-09-04 18:10 +0200
Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions Christoph Hellwig <hch@infradead.org> - 2017-09-05 08:50 +0200
csiph-web