Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1165627
| Path | csiph.com!aioe.org!eternal-september.org!feeder.eternal-september.org!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jason Low <jason.low2@hp.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/4] locking/rtmutex: Use cmp-cmpxchg |
| Date | Tue, 16 Jun 2015 03:10:02 +0200 |
| Message-ID | <pBNy2-3LE-5@gated-at.bofh.it> (permalink) |
| References | <prTv4-4VH-7@gated-at.bofh.it> <prTv4-4VH-5@gated-at.bofh.it> <pxZ4K-9G-13@gated-at.bofh.it> <pyocO-427-3@gated-at.bofh.it> <pBHsB-3bH-3@gated-at.bofh.it> <pBIoG-4yI-15@gated-at.bofh.it> |
| X-Original-To | Davidlohr Bueso <dave@stgolabs.net> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=dAkJ7Mjm5Rz+11tsKMAzgOZ+VGrgv/FvIEsZFQr7uI8=; b=eRXz6DGmZy5eTfDA+qEm5twm0y5MUQjWHLseK1IyT8s+yh7m9X7kiH0rWLE84052ZE 88Cr+hVCygi5TPmzWty0TjScm5eSVRehpwNBbEm23tw40MmTYynnDHIRWabuSYey2TI3 IOv/11VPkBCZjJYv6KYhlEHlmmTvCh4PW2feMiV++rKlpP56xOtTi5mkki+3/hH3xCrZ fVK2Gs5WSrnaxtWdHZNOx1wW7LnTMQZ0PjUe1p7Sj5DLWqdz+BdUtfHN+hmu5QpG8JZR mI+x0P70qGGOPL3DIUv88vl2lNgoyuoI2/YsS6rgkWmJBNvwzA6p/8DiuCpFxNblsnLp MY/A== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.109.138 with SMTP id hs10mr192457igb.48.1434416423953; Mon, 15 Jun 2015 18:00:23 -0700 (PDT) |
| X-Google-Sender-Auth | T2eUH5emLiKDjQexZ4C6A3iOqWY |
| Content-Type | text/plain; charset=UTF-8 |
| 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 | 18 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Jason Low <jason.low2@hp.com>, Thomas Gleixner <tglx@linutronix.de>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Steven Rostedt <rostedt@goodmis.org>, Mike Galbraith <umgwanakikbuti@gmail.com>, "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org> |
| X-Original-Date | Mon, 15 Jun 2015 18:00:23 -0700 |
| X-Original-Message-ID | <CAGQ1y=5GqtK_yvK_uwn2exOQxD20DhLUNtrQ0BokPZaRvCJxKw@mail.gmail.com> |
| X-Original-References | <1432056298-18738-1-git-send-email-dave@stgolabs.net> <1432056298-18738-3-git-send-email-dave@stgolabs.net> <alpine.DEB.2.11.1506051437470.7723@nanos> <1433604461.3165.21.camel@stgolabs.net> <CAGQ1y=4LL1AW9A1-PKGO24QiEFSL3Cg3+7K1meWoP3+rJbu8Jw@mail.gmail.com> <1434397028.1903.12.camel@stgolabs.net> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1165627 |
Show key headers only | View raw
On Mon, Jun 15, 2015 at 12:37 PM, Davidlohr Bueso <dave@stgolabs.net> wrote: > On Mon, 2015-06-15 at 11:34 -0700, Jason Low wrote: >> The CCAS technique was typically used in the slow paths for those >> other locks, where the chance of the operation returning false is >> higher. > > That is true. Although I really want to use it in patch 4, I guess I > could move the check in there, and thus avoid having it in the fastpath. I agree, that way, we only have the extra check in cases where it is beneficial, like in the optimistic spin loop. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 2/4] locking/rtmutex: Use cmp-cmpxchg Davidlohr Bueso <dave@stgolabs.net> - 2015-06-15 21:40 +0200 Re: [PATCH 2/4] locking/rtmutex: Use cmp-cmpxchg Jason Low <jason.low2@hp.com> - 2015-06-16 03:10 +0200
csiph-web