From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 05/10] vmscan: Synchrounous lumpy reclaim use lock_page() instead trylock_page() Date: Thu, 9 Sep 2010 11:25:24 +0800 Message-ID: <20100909032524.GA12245@localhost> References: <1283770053-18833-1-git-send-email-mel@csn.ul.ie> <1283770053-18833-6-git-send-email-mel@csn.ul.ie> <20100909120448.58acc9a6.kamezawa.hiroyu@jp.fujitsu.com> <20100909121547.2e69735a.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Mel Gorman , "linux-mm@kvack.org" , "linux-fsdevel@vger.kernel.org" , Linux Kernel List , Rik van Riel , Johannes Weiner , Minchan Kim , Andrea Arcangeli , KOSAKI Motohiro , Dave Chinner , Chris Mason , Christoph Hellwig , Andrew Morton To: KAMEZAWA Hiroyuki Return-path: Received: from mga09.intel.com ([134.134.136.24]:34943 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751608Ab0IIDZ3 (ORCPT ); Wed, 8 Sep 2010 23:25:29 -0400 Content-Disposition: inline In-Reply-To: <20100909121547.2e69735a.kamezawa.hiroyu@jp.fujitsu.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Sep 09, 2010 at 11:15:47AM +0800, KAMEZAWA Hiroyuki wrote: > On Thu, 9 Sep 2010 12:04:48 +0900 > KAMEZAWA Hiroyuki wrote: > > > On Mon, 6 Sep 2010 11:47:28 +0100 > > Mel Gorman wrote: > > > > > From: KOSAKI Motohiro > > > > > > With synchrounous lumpy reclaim, there is no reason to give up to reclaim > > > pages even if page is locked. This patch uses lock_page() instead of > > > trylock_page() in this case. > > > > > > Signed-off-by: KOSAKI Motohiro > > > Signed-off-by: Mel Gorman > > > > Reviewed-by: KAMEZAWA Hiroyuki > > > Ah......but can't this change cause dead lock ?? You mean the task goes for page allocation while holding some page lock? Seems possible. Thanks, Fengguang