Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1737040
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] Documentation: rewrite confusing statement about memory barriers |
| Date | Thu, 21 Sep 2017 22:00:02 +0200 |
| Message-ID | <usfNE-5au-9@gated-at.bofh.it> (permalink) |
| References | <usfkC-50V-5@gated-at.bofh.it> <usfND-5au-1@gated-at.bofh.it> |
| X-Original-To | paulmck@linux.vnet.ibm.com |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Language | en-US |
| Content-Transfer-Encoding | 7bit |
| X-Tm-As-Gconf | 00 |
| X-Cbid | 17092119-0044-0000-0000-000003938BB9 |
| X-Ibm-Spammodules-Versions | BY=3.00007774; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000231; SDB=6.00920372; UDB=6.00462470; IPR=6.00700595; BA=6.00005601; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017240; XFM=3.00000015; UTC=2017-09-21 19:53:50 |
| X-Ibm-Av-Detection | SAVI=unused REMOTE=unused XFE=unused |
| X-Cbparentid | 17092119-0045-0000-0000-000007C28FEE |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:,, definitions=2017-09-21_05:,, signatures=0 |
| X-Proofpoint-Spam-Details | rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709210267 |
| 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 | 48 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net |
| X-Original-Date | Thu, 21 Sep 2017 16:53:45 -0300 |
| X-Original-Message-ID | <24b095bd-39f2-4a9b-2064-9ca38fa77380@linux.vnet.ibm.com> |
| X-Original-References | <20170921192901.19206-1-gpiccoli@linux.vnet.ibm.com> <20170921195058.GM3521@linux.vnet.ibm.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1737040 |
Show key headers only | View raw
On 09/21/2017 04:50 PM, Paul E. McKenney wrote: > On Thu, Sep 21, 2017 at 04:29:01PM -0300, Guilherme G. Piccoli wrote: >> In this specific portion of the write memory barriers description, >> the documentation mentions sequential order of stores, which is >> confusing since sequential ordering is not guaranteed. >> >> This patch tries to improve the doc in order to avoid any >> mis-understanding. >> >> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> >> Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com> > > Good catch, and you are quite correct, a write barrier orders only > before and after itself, doing nothing to impose order on preceding > writes among themselves. That's nice, thanks a lot Paul! :) > > Applied, thank you! > > Thanx, Paul > >> --- >> >> v2: added Paul in CC. >> >> Documentation/memory-barriers.txt | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt >> index b759a60624fd..a4bbbd1b63a0 100644 >> --- a/Documentation/memory-barriers.txt >> +++ b/Documentation/memory-barriers.txt >> @@ -383,8 +383,8 @@ Memory barriers come in four basic varieties: >> to have any effect on loads. >> >> A CPU can be viewed as committing a sequence of store operations to the >> - memory system as time progresses. All stores before a write barrier will >> - occur in the sequence _before_ all the stores after the write barrier. >> + memory system as time progresses. All stores _before_ a write barrier >> + will occur _before_ all the stores after the write barrier. >> >> [!] Note that write barriers should normally be paired with read or data >> dependency barriers; see the "SMP barrier pairing" subsection. >> -- >> 2.14.1 >>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2] Documentation: rewrite confusing statement about memory barriers "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com> - 2017-09-21 21:30 +0200
Re: [PATCH v2] Documentation: rewrite confusing statement about memory barriers "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-09-21 22:00 +0200
Re: [PATCH v2] Documentation: rewrite confusing statement about memory barriers "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com> - 2017-09-21 22:00 +0200
csiph-web