Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbeAET1w (ORCPT + 1 other); Fri, 5 Jan 2018 14:27:52 -0500 Received: from resqmta-ch2-09v.sys.comcast.net ([69.252.207.41]:60202 "EHLO resqmta-ch2-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752442AbeAET1v (ORCPT ); Fri, 5 Jan 2018 14:27:51 -0500 Date: Fri, 5 Jan 2018 13:27:48 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Michal Hocko cc: Anshuman Khandual , Andrew Morton , Zi Yan , Naoya Horiguchi , "Kirill A. Shutemov" , Vlastimil Babka , Andrea Reale , linux-mm@kvack.org, LKML Subject: Re: [PATCH 1/3] mm, numa: rework do_pages_move In-Reply-To: <20180105184808.GS2801@dhcp22.suse.cz> Message-ID: References: <20180103082555.14592-1-mhocko@kernel.org> <20180103082555.14592-2-mhocko@kernel.org> <20180105091443.GJ2801@dhcp22.suse.cz> <20180105093301.GK2801@dhcp22.suse.cz> <20180105180905.GR2801@dhcp22.suse.cz> <20180105184808.GS2801@dhcp22.suse.cz> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfHlyfFv4LeK4WOEeigmQy+feb2QNLZYKEufWsksA/K2aQLMAc5cUxnqfaalLch15dECrmH5PVfQhivbyD744KQm9rizBNileEOfaC49rruIe0xPUhGJ3 MDPOmVhB0Q2r43EwG+wSYJqfs1Yo6idLK68YOdivC3Ipha3XmH4t0xsitTwart6oi/a62PrKdxwegRL2aROGP9EREaAxewWkwBXwkt5Lv5DaZhaVoeWL228B e1v3/Qi+wSDN9tNjdrV1U1s3WS+6ECKvavXOeiJdRqmX1KvD2zQUTzArbYWIMPv9pds3NF57d/aEth7uT53sM8e2apUccN838zSKpz9dypojFUzYFgpBQnJc OFdOr6Yj3L8WrsO61RrA7OxFiNu1LkVT9yewkEiY8/agWnxcMmkR4Q7xeFaxnHW0j9L1OXAhGk9VtyHC70yzucpK7rM0DviCKMSRm8IqgE7T66A9/Q0= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, 5 Jan 2018, Michal Hocko wrote: > > Also why are you migrating the pages on pagelist if a > > add_page_for_migration() fails? One could simply update > > the status in user space and continue. > > I am open to further cleanups. Care to send a full patch with the > changelog? I would rather not fold more changes to the already tested > one. While doing that I saw that one could pull the rwsem locking out of add_page_for_migration() as well in order to avoid taking it for each 4k page. Include that?