From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751456AbdARHMy (ORCPT ); Wed, 18 Jan 2017 02:12:54 -0500 Received: from out0-154.mail.aliyun.com ([140.205.0.154]:44899 "EHLO out0-154.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbdARHMw (ORCPT ); Wed, 18 Jan 2017 02:12:52 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01l04448;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.7TLYrFY_1484723547; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Vlastimil Babka'" , "'Mel Gorman'" , "'Ganapatrao Kulkarni'" Cc: "'Michal Hocko'" , , References: <20170117221610.22505-1-vbabka@suse.cz> <20170117221610.22505-5-vbabka@suse.cz> In-Reply-To: <20170117221610.22505-5-vbabka@suse.cz> Subject: Re: [RFC 4/4] mm, page_alloc: fix premature OOM when racing with cpuset mems update Date: Wed, 18 Jan 2017 15:12:27 +0800 Message-ID: <036e01d2715a$3a227de0$ae6779a0$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHFQ09NS6piBt3Jppx8qDlvAmfCYwIcHongoUdJIGA= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, January 18, 2017 6:16 AM Vlastimil Babka wrote: > > @@ -3802,13 +3811,8 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, > * Also recalculate the starting point for the zonelist iterator or > * we could end up iterating over non-eligible zones endlessly. > */ Is the newly added comment still needed? > - if (unlikely(ac.nodemask != nodemask)) { > -no_zone: > + if (unlikely(ac.nodemask != nodemask)) > ac.nodemask = nodemask; > - ac.preferred_zoneref = first_zones_zonelist(ac.zonelist, > - ac.high_zoneidx, ac.nodemask); > - /* If we have NULL preferred zone, slowpath wll handle that */ > - } > > page = __alloc_pages_slowpath(alloc_mask, order, &ac); > > -- > 2.11.0