Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751174AbWCHLBj (ORCPT ); Wed, 8 Mar 2006 06:01:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751332AbWCHLBj (ORCPT ); Wed, 8 Mar 2006 06:01:39 -0500 Received: from ns.suse.de ([195.135.220.2]:38804 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1751313AbWCHLBi (ORCPT ); Wed, 8 Mar 2006 06:01:38 -0500 Date: Wed, 8 Mar 2006 12:01:35 +0100 From: Jan Blunck To: Balbir Singh Cc: Neil Brown , Kirill Korotaev , Balbir Singh , linux-kernel@vger.kernel.org, Andrew Morton , Olaf Hering , Kirill Korotaev , Al Viro Subject: Re: [PATCH] Busy inodes after unmount, be more verbose in generic_shutdown_super Message-ID: <20060308110135.GA21187@hasse.suse.de> References: <17414.38749.886125.282255@cse.unsw.edu.au> <17419.53761.295044.78549@cse.unsw.edu.au> <661de9470603052332s63fd9b2crd60346324af27fbf@mail.gmail.com> <17420.59580.915759.44913@cse.unsw.edu.au> <440D2536.60005@sw.ru> <17422.9555.635650.460131@cse.unsw.edu.au> <20060308021731.GA29327@in.ibm.com> <17422.17387.691138.193521@cse.unsw.edu.au> <20060308030500.GB29327@in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060308030500.GB29327@in.ibm.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1037 Lines: 28 On Wed, Mar 08, Balbir Singh wrote: > > wait_on_prunes() breaks out if sb->prunes == 0. What if shrink_dcache_parent() > now calls select_parent(). select_parent() could still find entries > with d_count > 0 and skip them and shrink_dcache_memory() can still cause > the race condition to occur. > > I think pushing wait_on_prunes() to after shrink_dcache_parent() will > most likely solve the race. > This is why I used to let shrink_dache_parent() only return after an unsuccessfull select_parent() after a wait. Regards, Jan -- Jan Blunck jblunck@suse.de SuSE LINUX AG - A Novell company Maxfeldstr. 5 +49-911-74053-608 D-90409 N?rnberg http://www.suse.de - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/