Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1455526

Re: [PATCH] x86/mm: Add barriers and document switch_mm()-vs-flush synchronization follow-up

From Rafael Aquini <aquini@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] x86/mm: Add barriers and document switch_mm()-vs-flush synchronization follow-up
Date 2016-08-03 01:20 +0200
Message-ID <s1R8B-2L9-3@gated-at.bofh.it> (permalink)
References <s1K79-6pf-41@gated-at.bofh.it> <s1Qmd-2er-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Aug 02, 2016 at 03:27:06PM -0700, Nadav Amit wrote:
> Rafael Aquini <aquini@redhat.com> wrote:
> 
> > While backporting 71b3c126e611 ("x86/mm: Add barriers and document switch_mm()-vs-flush synchronization")
> > we stumbled across a possibly missing barrier at flush_tlb_page().
> 
> I too noticed it and submitted a similar patch that never got a response [1].
>

As far as I understood Andy's rationale for the original patch you need
a full memory barrier there in flush_tlb_page to get that cache-eviction
race sorted out.

Regards,
-- Rafael

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] x86/mm: Add barriers and document switch_mm()-vs-flush synchronization follow-up Rafael Aquini <aquini@redhat.com> - 2016-08-02 17:50 +0200
  Re: [PATCH] x86/mm: Add barriers and document switch_mm()-vs-flush synchronization follow-up Nadav Amit <nadav.amit@gmail.com> - 2016-08-03 00:30 +0200
    Re: [PATCH] x86/mm: Add barriers and document switch_mm()-vs-flush  synchronization follow-up Andy Lutomirski <luto@amacapital.net> - 2016-08-03 00:50 +0200
    Re: [PATCH] x86/mm: Add barriers and document switch_mm()-vs-flush  synchronization follow-up Rafael Aquini <aquini@redhat.com> - 2016-08-03 01:20 +0200
      Re: [PATCH] x86/mm: Add barriers and document switch_mm()-vs-flush synchronization follow-up Nadav Amit <nadav.amit@gmail.com> - 2016-08-03 02:50 +0200

csiph-web