Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1244149
| Path | csiph.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Boqun Feng <boqun.feng@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] Documentation: Remove misleading examples of the barriers in wake_*() |
| Date | Sun, 11 Oct 2015 17:30:01 +0200 |
| Message-ID | <qiqJr-3Wp-3@gated-at.bofh.it> (permalink) |
| References | <q6fJL-5Z2-1@gated-at.bofh.it> <q6Tea-3WQ-21@gated-at.bofh.it> <q6ZCW-4Mz-11@gated-at.bofh.it> <q7eiC-eo-11@gated-at.bofh.it> <q9H6P-4rU-27@gated-at.bofh.it> <qceL0-4jO-5@gated-at.bofh.it> <qgCYr-2Cn-29@gated-at.bofh.it> |
| X-Original-To | Peter Zijlstra <peterz@infradead.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=t3dHjmXUDMir6WpMcc1e2ONRVegNPJMkipmdGFQX4g8=; b=aLhtGwMnPPVpYzvFO+mRK4JuYLfYweE79+v63X572HD02j8TXgTmEgU1QPUH6/CLg0 AdnvEI72DJa+N5OcAyLfOK0Bkoc8KLgr05+v2nzPD4UheGzzDsem63yzUQxvFY/QgONz 9OSTTOx48RH2vAek4V9udQyazQDWuHSY0kDpla8w66+YTAtmK0eY2Ih3D7wcRsYHAf7Y hi3w1RNukIba4odAUpq1kuhshjzzOSgspnvdp+JObIi1SxSyYlvSEOJENyZTOw3VWrD8 Hr47AN8WZJLR3q5iaeN4arq7ZIEfp8y3DYzXAQYGussCRjdVi9inxmaV0jYTv4HbzBhc uDnw== |
| X-Received | by 10.202.98.2 with SMTP id w2mr12960562oib.83.1444577227733; Sun, 11 Oct 2015 08:27:07 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tjCHc7DPkfUGtrlw" |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.24 (2015-08-30) |
| 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 | 66 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Oleg Nesterov <oleg@redhat.com>, "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>, Michal Hocko <mhocko@kernel.org>, David Howells <dhowells@redhat.com>, Linus Torvalds <torvalds@linux-foundation.org>, Will Deacon <will.deacon@arm.com> |
| X-Original-Date | Sun, 11 Oct 2015 23:26:40 +0800 |
| X-Original-Message-ID | <20151011152640.GC27351@fixme-laptop.cn.ibm.com> |
| X-Original-References | <1441674841-11498-1-git-send-email-boqun.feng@gmail.com> <20150909192822.GM4029@linux.vnet.ibm.com> <20150910021612.GC18494@fixme-laptop.cn.ibm.com> <20150910175557.GA20640@redhat.com> <20150917130125.GL3816@twins.programming.kicks-ass.net> <20150924132121.GA1814@fixme-laptop.cn.ibm.com> <20151006160650.GT3604@twins.programming.kicks-ass.net> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1244149 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Tue, Oct 06, 2015 at 06:06:50PM +0200, Peter Zijlstra wrote: > On Thu, Sep 24, 2015 at 09:21:22PM +0800, Boqun Feng wrote: > > > Included in it are some of the details on this subject, because a wakeup > > > has two prior states that are of importance, the tasks own prior state > > > and the wakeup state, both should be considered in the 'program order' > > > flow. > > > > > > > Great and very helpful ;-) > > > > > So maybe we can reduce the description in memory-barriers to this > > > 'split' program order guarantee, where a woken task must observe both > > > its own prior state and its wakee state. > > ^^^^^ > > I think you mean "waker" here, right? > > Yes. > > > And the waker is not necessarily the same task who set the @cond to > > true, right? > > It should be. > > > If so, I feel like it's really hard to *use* this 'split' > > program order guarantee in other places than sleep/wakeup itself. Could > > you give an example? Thank you. > > It was not meant to be used in any other scenario; the 'split' PO really > is part of the whole sleep/wakeup. It does not apply to anything else. Got it. So at this point, I think it's better to remove the entire "Sleep and wake-up functions" section in memory-barriers.txt. Because this order guarantee is not for other users except sleep/wakeup. Any concern, Paul? Regards, Boqun
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] Documentation: Remove misleading examples of the barriers in wake_*() Peter Zijlstra <peterz@infradead.org> - 2015-10-06 18:10 +0200
Re: [PATCH] Documentation: Remove misleading examples of the barriers in wake_*() Boqun Feng <boqun.feng@gmail.com> - 2015-10-11 17:30 +0200
Re: [PATCH] Documentation: Remove misleading examples of the barriers in wake_*() "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-10-12 02:50 +0200
Re: [PATCH] Documentation: Remove misleading examples of the barriers in wake_*() Boqun Feng <boqun.feng@gmail.com> - 2015-10-12 11:10 +0200
Re: [PATCH] Documentation: Remove misleading examples of the barriers in wake_*() Peter Zijlstra <peterz@infradead.org> - 2015-10-12 14:00 +0200
Re: [PATCH] Documentation: Remove misleading examples of the barriers in wake_*() Boqun Feng <boqun.feng@gmail.com> - 2015-10-12 15:10 +0200
Re: [PATCH] Documentation: Remove misleading examples of the barriers in wake_*() Peter Zijlstra <peterz@infradead.org> - 2015-10-12 18:30 +0200
csiph-web