From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933547AbcI0Dbr (ORCPT ); Mon, 26 Sep 2016 23:31:47 -0400 Received: from out0-138.mail.aliyun.com ([140.205.0.138]:41641 "EHLO out0-138.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbcI0Dbh (ORCPT ); Mon, 26 Sep 2016 23:31:37 -0400 X-Greylist: delayed 321 seconds by postgrey-1.27 at vger.kernel.org; Mon, 26 Sep 2016 23:31:36 EDT X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03295;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---.7.K1KFx_1474946746; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Vlastimil Babka'" , "'Andrew Morton'" Cc: , , "'Linus Torvalds'" , "'Arkadiusz Miskiewicz'" , "'Ralf-Peter Rohbeck'" , "'Olaf Hering'" , "'Mel Gorman'" , "'Joonsoo Kim'" , "'David Rientjes'" , "'Rik van Riel'" , "'Michal Hocko'" , "'Michal Hocko'" References: <20160926162025.21555-1-vbabka@suse.cz> <20160926162025.21555-2-vbabka@suse.cz> In-Reply-To: <20160926162025.21555-2-vbabka@suse.cz> Subject: Re: [PATCH 1/4] mm, compaction: more reliably increase direct compaction priority-fix Date: Tue, 27 Sep 2016 11:25:46 +0800 Message-ID: <01a101d2186e$d66729c0$83357d40$@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: AQGs0eSTjozmF+6XmeV5HBgBbPNGgwIC8KaCoMchR1A= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, September 27, 2016 12:20 AM Vlastimil Babka wrote > > When increasing the compaction priority, also reset retries. Otherwise we can > consume all retries on the lower priorities. Also pull the retries increment > into should_compact_retry() so it counts only the rounds where we actually > rely on it. > > Suggested-by: Michal Hocko > Signed-off-by: Vlastimil Babka > Acked-by: Michal Hocko > Cc: Mel Gorman > Cc: Joonsoo Kim > Cc: David Rientjes > Cc: Rik van Riel > --- Acked-by: Hillf Danton