Received: by 10.223.164.202 with SMTP id h10csp2391823wrb; Thu, 16 Nov 2017 14:30:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMYA9BZ8s78rsNWoVyLiPZNV9V0FYKxOttcO3DCDgMiOjTaUyG5jRmZ5GEzfz3exvUfKHw70 X-Received: by 10.84.128.36 with SMTP id 33mr3204940pla.329.1510871454447; Thu, 16 Nov 2017 14:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510871454; cv=none; d=google.com; s=arc-20160816; b=SSQrxEqPkhK+bZZ005za3tv26JVQ1Vv86u/gV4BsBt3b/BOfMI9OkBCrOhxgauJlGb p2VzOjZCbQ8wWWpJ4SLqkCDHMOhQtZ8xghW58Bc8U8WLkbJes9WZ6uS515VF8njzgze2 NH7ELAIfk3RcOY1s8HArmA0+OjIY9WrkWcKRDhjrlaUPcsGghJHJ+wVm5VZ0N/GTxISA eBeQTRWq0+XV0HdNpXVsRfsrODeYRFQAz1IZ1XF7tEXx9qQsxSDLCATPo9THO6Jin4OZ i6TsSLHyl3C/zV2Wl0llBxzSdaIHYimLMo0H3A5xG98zpBPS02TV066PTcqGCxR2qP15 hRNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=tMSpS4GXQuJtyoW8Ly5hDwVJlJSk99rl3e6Lwj1T8jQ=; b=BLUSG1NBqBhPQ9xJ/vL7QX127+432PunSku/6X1KL40O8aF2nxd1Gs+EAKFayBSjeE pfTUu0Ot+4N5Jb5k367Q7mV9DCnx6jG5+8cHEWIh2FPqBqTuiEdJyAbuRiMBz9sUBQXZ BcoVDBvbKWeSvOSnaqwZoQd1hXn+bsyWAJsObN9Y62wXlBK9x/SDZoQX2sHC3vmxFOnP wYHXbPrszYt1henMR6rtd0AZYCiyl5UVvW1QwpWMlMGlbPPo8R/1UfqomxkK3649RLj6 Kwdg69Uy+gcj/A+DcbyRdB7AarrfTHwlhXZtz6rVjK5yQVeHbXJhbwrd3iPXb+kwIYG5 xRGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=bhAjXHZd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30si1565944pld.747.2017.11.16.14.30.41; Thu, 16 Nov 2017 14:30:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=bhAjXHZd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760364AbdKPRrE (ORCPT + 92 others); Thu, 16 Nov 2017 12:47:04 -0500 Received: from gum.cmpxchg.org ([85.214.110.215]:49270 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965982AbdKPRom (ORCPT ); Thu, 16 Nov 2017 12:44:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tMSpS4GXQuJtyoW8Ly5hDwVJlJSk99rl3e6Lwj1T8jQ=; b=bhAjXHZdGuEcS2cTyF4wC5dZzs QeVWUT9rqd+5aGCVqOPXmU4Ptk0jr/Sd204ush/P6svoESN7GsjqqxClRqaCaHLh0N/7vXhhoVuDz 1BAg7qzur2BHReVIi+9A9qJrr/Y6MGVSbMj/jVywGQgyoBmvKTlTpLCvC/AkDTHFGv7o=; Date: Thu, 16 Nov 2017 12:44:22 -0500 From: Johannes Weiner To: Minchan Kim Cc: Tetsuo Handa , Huang Ying , Mel Gorman , Vladimir Davydov , Michal Hocko , Andrew Morton , Shakeel Butt , Greg Thelen , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mm,vmscan: Kill global shrinker lock. Message-ID: <20171116174422.GC26475@cmpxchg.org> References: <1510609063-3327-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <20171115005602.GB23810@bbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171115005602.GB23810@bbox> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 15, 2017 at 09:56:02AM +0900, Minchan Kim wrote: > @@ -498,6 +498,14 @@ static unsigned long shrink_slab(gfp_t gfp_mask, int nid, > sc.nid = 0; > > freed += do_shrink_slab(&sc, shrinker, nr_scanned, nr_eligible); > + /* > + * bail out if someone want to register a new shrinker to prevent > + * long time stall by parallel ongoing shrinking. > + */ > + if (rwsem_is_contended(&shrinker_rwsem)) { > + freed = 1; > + break; > + } > } When you send the formal version, please include Acked-by: Johannes Weiner From 1584231271087837739@xxx Thu Nov 16 13:57:54 +0000 2017 X-GM-THRID: 1583988486620709897 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread