From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932464AbdDVEqc (ORCPT ); Sat, 22 Apr 2017 00:46:32 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:34973 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932379AbdDVEq2 (ORCPT ); Sat, 22 Apr 2017 00:46:28 -0400 MIME-Version: 1.0 In-Reply-To: <20170422033037.3028-3-jglisse@redhat.com> References: <20170422033037.3028-1-jglisse@redhat.com> <20170422033037.3028-3-jglisse@redhat.com> From: Dan Williams Date: Fri, 21 Apr 2017 21:46:27 -0700 Message-ID: Subject: Re: [HMM 02/15] mm/put_page: move ZONE_DEVICE page reference decrement v2 To: =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= Cc: Andrew Morton , "linux-kernel@vger.kernel.org" , Linux MM , John Hubbard , Naoya Horiguchi , David Nellans , Ross Zwisler Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v3M4kdMK031678 On Fri, Apr 21, 2017 at 8:30 PM, Jérôme Glisse wrote: > Move page reference decrement of ZONE_DEVICE from put_page() > to put_zone_device_page() this does not affect non ZONE_DEVICE > page. > > Doing this allow to catch when a ZONE_DEVICE page refcount reach > 1 which means the device is no longer reference by any one (unlike > page from other zone, ZONE_DEVICE page refcount never reach 0). > > This patch is just a preparatory patch for HMM. > > Changes since v1: > - commit message > > Signed-off-by: Jérôme Glisse > Cc: Dan Williams > Cc: Ross Zwisler Reviewed-by: Dan Williams