Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753816AbWKGWps (ORCPT ); Tue, 7 Nov 2006 17:45:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753817AbWKGWps (ORCPT ); Tue, 7 Nov 2006 17:45:48 -0500 Received: from mx1.redhat.com ([66.187.233.31]:50083 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1753816AbWKGWpr (ORCPT ); Tue, 7 Nov 2006 17:45:47 -0500 Message-ID: <45510C73.7060408@redhat.com> Date: Tue, 07 Nov 2006 16:45:07 -0600 From: Eric Sandeen User-Agent: Thunderbird 1.5.0.7 (X11/20061008) MIME-Version: 1.0 To: Andrew Morton CC: Alasdair G Kergon , linux-kernel@vger.kernel.org, dm-devel@redhat.com, Ingo Molnar , Srinivasa DS Subject: Re: [PATCH 2.6.19 5/5] fs: freeze_bdev with semaphore not mutex References: <20061107183459.GG6993@agk.surrey.redhat.com> <20061107122837.54828e24.akpm@osdl.org> In-Reply-To: <20061107122837.54828e24.akpm@osdl.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 808 Lines: 24 Andrew Morton wrote: >> --- linux-2.6.19-rc4.orig/fs/buffer.c 2006-11-07 17:06:20.000000000 +0000 >> +++ linux-2.6.19-rc4/fs/buffer.c 2006-11-07 17:26:04.000000000 +0000 >> @@ -188,7 +188,9 @@ struct super_block *freeze_bdev(struct b >> { >> struct super_block *sb; >> >> - mutex_lock(&bdev->bd_mount_mutex); >> + if (down_trylock(&bdev->bd_mount_sem)) >> + return -EBUSY; >> + > > This is a functional change which isn't described in the changelog. What's > happening here? Only allow one bdev-freezer in at a time, rather than queueing them up? -Eric - 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/