Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1701523
| From | "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: linux-next: manual merge of the rcu tree with the tip tree |
| Date | 2017-08-01 23:40 +0200 |
| Message-ID | <u9N3s-Rr-21@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <u9sV4-4wv-7@gated-at.bofh.it> <u9wFj-6QY-1@gated-at.bofh.it> <u9FIC-4Dg-11@gated-at.bofh.it> <u9G1Z-4YZ-43@gated-at.bofh.it> <u9GbE-52o-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 01, 2017 at 07:15:40AM -0700, Andy Lutomirski wrote: > On Tue, Aug 1, 2017 at 7:02 AM, Mathieu Desnoyers > <mathieu.desnoyers@efficios.com> wrote: > > /* > > * The full memory barrier implied by mm_cpumask update operations > > * is required by the membarrier system call. > > */ > > > > What we want to order here is: > > > > prev userspace memory accesses > > schedule > > <full mb> (it's already there) [A] > > update to rq->curr changing the rq->curr->mm value > > <full mb> (provided by mm_cpumask updates in switch_mm on x86) [B] > > If I understand this right, the issue with relying on CR3 writes is > that the target CPU could switch to a kernel thread and back to the > same user mm white the membarrier caller is reading its mm, right? The thing that got my attention was your patch removing the load_cr3(). Ah, looking closer, it appears that you have not eliminated the CR3 load, but just renamed it to write_cr3(). So if there is always still a CR3 load, you are right, I should be able to simply move the comment. Or let you insert the comment into your patch? So there is still always a CR3 load, correct? (Hey, I thought that maybe x86 was moving to ASIDs or some such.) Thanx, Paul
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: linux-next: manual merge of the rcu tree with the tip tree "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-07-31 18:20 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-08-01 02:10 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-08-01 06:10 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-08-01 06:30 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-08-01 18:40 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Andy Lutomirski <luto@kernel.org> - 2017-08-01 15:50 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Peter Zijlstra <peterz@infradead.org> - 2017-08-01 16:00 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Peter Zijlstra <peterz@infradead.org> - 2017-08-01 16:20 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Andy Lutomirski <luto@kernel.org> - 2017-08-01 16:20 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-08-01 16:10 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Andy Lutomirski <luto@kernel.org> - 2017-08-01 16:20 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-08-01 17:50 +0200
Re: linux-next: manual merge of the rcu tree with the tip tree "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-08-01 23:40 +0200
csiph-web