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


Groups > linux.kernel > #1628500

Re: [PATCH v2 2/3] x86/mm: Make flush_tlb_mm_range() more predictable

From Dave Hansen <dave.hansen@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 2/3] x86/mm: Make flush_tlb_mm_range() more predictable
Date 2017-04-21 21:00 +0200
Message-ID <tyLWG-Sq-19@gated-at.bofh.it> (permalink)
References <tyLtE-Ix-27@gated-at.bofh.it> <tyLtE-Ix-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 04/21/2017 11:15 AM, Andy Lutomirski wrote:
> I'm about to rewrite the function almost completely, but first I
> want to get a functional change out of the way.  Currently, if
> flush_tlb_mm_range() does not flush the local TLB at all, it will
> never do individual page flushes on remote CPUs.  This seems to be
> an accident, and preserving it will be awkward.  Let's change it
> first so that any regressions in the rewrite will be easier to
> bisect and so that the rewrite can attempt to change no visible
> behavior at all.
> 
> The fix is simple: we can simply avoid short-circuiting the
> calculation of base_pages_to_flush.

This looks sane to me.  I think it makes things more straightforward.

Acked-by: Dave Hansen <dave.hansen@intel.com>

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


Thread

[PATCH v2 2/3] x86/mm: Make flush_tlb_mm_range() more predictable Andy Lutomirski <luto@kernel.org> - 2017-04-21 20:30 +0200
  Re: [PATCH v2 2/3] x86/mm: Make flush_tlb_mm_range() more predictable Dave Hansen <dave.hansen@intel.com> - 2017-04-21 21:00 +0200

csiph-web