Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1998417ybi; Thu, 18 Jul 2019 01:45:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmCaBryIoH0wzmRn2TSTHIr+15uumwvgC+nC2R7geMaVypU1HO8tcFJk1bxDpTU4nD6QlO X-Received: by 2002:a63:3046:: with SMTP id w67mr7705441pgw.37.1563439554016; Thu, 18 Jul 2019 01:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563439554; cv=none; d=google.com; s=arc-20160816; b=Em3MWeaJ+6heisy8fwB/k7ctYB1gHJo9gS1Fz1pYWcGaDwjOqpivslAlztweOlKQ+X evNntoJ8ZX5VTQtbI3AjNdRPZKyja3rZWFpgu4xvRTQIxG9YBDK7KI8M0D5NMD0hiJiL aMdYQC2UKcvuFYzfuB53OcM1XVFwy8nusLzMp3q0CiLp7PghBkI4MjbmPCudyRw+UPLE nu8guKfCVO6gSxRG0u6smrGqwaRQx/gkfL+3ZKNjtiD4RVFiWp0ZKuCb4geNBfkucTw+ rS0W33xBP8UEIgiN17XrbnBqeySNE9KtmFH3NadBnYR769pOZew0n1O17wpI9n8gZH+V oybA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UbtuWMaNqNm0A4t0zaxp0854Eypr7g09S/us24n8g24=; b=EZx84pD7mO4KfgDoVLcjv7vHyG0mYH0WH2PxHy2RMcJOsFTGPMdgB6B9o6c+8arTDv EdBBUbApsKIW2zXZ3X29ctwB0t6CJ9BmkB9A7mYIb4MalNRPNN4vZcMZbEgKYO1q+tT5 CNoFp7p8e7HBg0Egm0K9wajFmxR0zUaqooWs28J2GWyOOyB8EuXdX5FljJuNjuTzLibZ YPwzJ1pQS6yJBQ0qv2mQhOjoku+q29bgdEmebfIh363xdAYpn472YK32kRKdYRmw2b0Z PQah/lKZaXHqdW1wVG00dhHn2JDRDjT4Cjvr3clJSsASaEPNJzdQHq4w0NcjbSeJO8ps Z2ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j67si366103plb.195.2019.07.18.01.45.38; Thu, 18 Jul 2019 01:45:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389549AbfGRIov (ORCPT + 99 others); Thu, 18 Jul 2019 04:44:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:47118 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726482AbfGRIov (ORCPT ); Thu, 18 Jul 2019 04:44:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B8B67AD22; Thu, 18 Jul 2019 08:44:49 +0000 (UTC) Date: Thu, 18 Jul 2019 10:44:45 +0200 From: Joerg Roedel To: Dave Hansen Cc: Joerg Roedel , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 2/3] x86/mm: Sync also unmappings in vmalloc_sync_one() Message-ID: <20190718084445.GE13091@suse.de> References: <20190717071439.14261-1-joro@8bytes.org> <20190717071439.14261-3-joro@8bytes.org> <28a4c10f-f895-e8ff-d07b-9e4c35aa6342@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28a4c10f-f895-e8ff-d07b-9e4c35aa6342@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On Wed, Jul 17, 2019 at 02:06:01PM -0700, Dave Hansen wrote: > On 7/17/19 12:14 AM, Joerg Roedel wrote: > > - if (!pmd_present(*pmd)) > > + if (pmd_present(*pmd) ^ pmd_present(*pmd_k)) > > set_pmd(pmd, *pmd_k); > > Wouldn't: > > if (pmd_present(*pmd) != pmd_present(*pmd_k)) > set_pmd(pmd, *pmd_k); > > be a bit more intuitive? Yes, right. That is much better, I changed it in the patch. > But, either way, these look fine. For the series: > > Reviewed-by: Dave Hansen Thanks! Joerg