From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932247AbbKMJQ5 (ORCPT ); Fri, 13 Nov 2015 04:16:57 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:37389 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753861AbbKMJQy (ORCPT ); Fri, 13 Nov 2015 04:16:54 -0500 Date: Fri, 13 Nov 2015 10:16:51 +0100 From: Michal Hocko To: David Rientjes Cc: Andrew Morton , Mel Gorman , linux-mm@kvack.org, LKML Subject: Re: [PATCH] mm: get rid of __alloc_pages_high_priority Message-ID: <20151113091651.GA2632@dhcp22.suse.cz> References: <1447343618-19696-1-git-send-email-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 12-11-15 12:47:45, David Rientjes wrote: > On Thu, 12 Nov 2015, mhocko@kernel.org wrote: [...] > > Hi, > > I think that this is more a cleanup than any functional change. We > > are rarely screwed so much that __alloc_pages_high_priority would > > fail. Yet I think that __alloc_pages_high_priority is obscuring the > > overal intention more than it is helpful. Another motivation is to > > reduce wait_iff_congested call to a single one in the allocator. I plan > > to do other changes in that area and get rid of it altogether. > > I think it's a combination of a cleanup (the inlining of > __alloc_pages_high_priority) and a functional change (no longer looping > infinitely around a get_page_from_freelist() call). I'd suggest doing the > inlining in one patch and then the reworking of __GFP_NOFAIL when > ALLOC_NO_WATERMARKS fails just so we could easily revert the latter if > necessary. I can split it up if this is really preferable of course. -- Michal Hocko SUSE Labs