Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1474318pxk; Mon, 31 Aug 2020 22:24:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+KpurNDfFv9K+fHkxrmv0gPsiKeNpgefNjCXMrwkoAb3qYV3Izv8ZwC1joPcHOIgvijTv X-Received: by 2002:a05:6402:17b9:: with SMTP id j25mr249357edy.203.1598937857645; Mon, 31 Aug 2020 22:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598937857; cv=none; d=google.com; s=arc-20160816; b=1Bm0MRbp4R7w1MW4+RwU+IhqMSHBw/cAKzt/V7ohiZCM0HkUNe3lucAoEqQThE00tW 0x34EPj+dfZ2fomz9FyS22vSX0WeM3sIGCmHbWN4FUlKJKfGVLaoza6/TS8bo+U4I8Oa 8CItEd1gxcDzg3XFXr4yFYsYJD4RCxqC3pIPQCSGoWnP1q3QpH2/HrqYJY0hvKZEC9YT w9q5PxldlG+fayWpzelAEHQceP5M/0HYb8D5E4BlbVdjpLg6AXuj5b0gxASWRpWm9pUw dg45E8SCBM2IBN7mk1Y66Ds4gsOZak2Tjgu8aI5w6K2sXBoAfsJ4H56xR5Lxf4ZslyE2 x+NA== 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=zcMORzPMXTBHMlE+4h1PXI3D04fJSaaXvFPwFCC9oAw=; b=gny3COKCR6pydWrJwgaOV5UQS71N19oeoW2fCwDTa+ant+mKnJqbig52Lt7WdOgDha 6xPaUTy5ThLYshE1rrDovARyNNEG25hpSDwqYPpwZaWCwZf7Oa10r8YenzK18J0CkQW+ p3GVJ5dp2/0+bj7wpn9CpkGMOODik6jioaQQlZqT5bEVOBTYDajZz1eInVbreEZCk2lP bEfy2nFqMH6FYOgJUbo15lx4JHLv2zxUk8kSeKrkRddQc2wlGcBMHnJPF/RuOnQ3nV/f VSTK22zlsQYCnVHeQ4ZQD/R/7Hvid8vNu3+fguXlKoArz54fm8XZS+WjeVxuzu2Y0LJW 4j5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si8846eds.193.2020.08.31.22.23.54; Mon, 31 Aug 2020 22:24:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726131AbgIAFU2 (ORCPT + 99 others); Tue, 1 Sep 2020 01:20:28 -0400 Received: from verein.lst.de ([213.95.11.211]:51782 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbgIAFU1 (ORCPT ); Tue, 1 Sep 2020 01:20:27 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id EFCD268CEC; Tue, 1 Sep 2020 07:20:25 +0200 (CEST) Date: Tue, 1 Sep 2020 07:20:25 +0200 From: Christoph Hellwig To: Ralph Campbell Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jerome Glisse , Alistair Popple , Christoph Hellwig , Jason Gunthorpe , Bharata B Rao , Andrew Morton Subject: Re: [PATCH 2/2] mm/migrate: preserve soft dirty in remove_migration_pte() Message-ID: <20200901052025.GB27876@lst.de> References: <20200831212222.22409-1-rcampbell@nvidia.com> <20200831212222.22409-3-rcampbell@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200831212222.22409-3-rcampbell@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 31, 2020 at 02:22:22PM -0700, Ralph Campbell wrote: > The code to remove a migration PTE and replace it with a device private > PTE was not copying the soft dirty bit from the migration entry. > This could lead to page contents not being marked dirty when faulting > the page back from device private memory. > > Signed-off-by: Ralph Campbell Looks good, Reviewed-by: Christoph Hellwig