Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759823AbYFJVz2 (ORCPT ); Tue, 10 Jun 2008 17:55:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758299AbYFJVzE (ORCPT ); Tue, 10 Jun 2008 17:55:04 -0400 Received: from cantor2.suse.de ([195.135.220.15]:32807 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758078AbYFJVzB (ORCPT ); Tue, 10 Jun 2008 17:55:01 -0400 Date: Tue, 10 Jun 2008 14:52:18 -0700 From: Greg KH To: Cornelia Huck Cc: Linus Torvalds , Ingo Molnar , Vegard Nossum , Adrian Bunk , Andrew Morton , Linux Kernel Mailing List , Jens Axboe , "Rafael J. Wysocki" , Kay Sievers , Neil Brown , Mariusz Kozlowski , Dave Young Subject: Re: [bug, 2.6.26-rc4/rc5] sporadic bootup crashes in blk_lookup_devt()/prepare_namespace() Message-ID: <20080610215218.GC16256@suse.de> References: <20080609133426.GB20194@cs181133002.pp.htv.fi> <19f34abd0806090658v54f3a912n2ed30ad6cc20d00@mail.gmail.com> <19f34abd0806090728s3b3fdbeq7dd3d31d02c8f28e@mail.gmail.com> <20080609165757.184724ff@gondolin.boeblingen.de.ibm.com> <20080609153856.GA5149@elte.hu> <20080609191521.1a56b6a6@gondolin.boeblingen.de.ibm.com> <20080610031109.GE6796@suse.de> <20080610095122.37c41276@gondolin.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080610095122.37c41276@gondolin.boeblingen.de.ibm.com> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1516 Lines: 38 On Tue, Jun 10, 2008 at 09:51:22AM +0200, Cornelia Huck wrote: > On Mon, 9 Jun 2008 20:11:09 -0700, > Greg KH wrote: > > > On Mon, Jun 09, 2008 at 07:15:21PM +0200, Cornelia Huck wrote: > > > The driver core changes in -next convert class->sem to > > > class->p->class_mutex, which makes it non-accessible to drivers. > > > Most of the locking is easily done through converting to the class > > > iterator functions, but there are some cases where this is not going to > > > work: > > > > > > - The {register,unregister}_blkdev() functions, which don't directly > > > involve the class. > > > - The iterators for /proc/partitions, which take the lock in > > > part_start() and give it up again in part_stop(). > > > > > > Maybe we need a possibilty for a driver to lock a class from outside? > > > > Why would that be needed? We protect walking the class lists internally > > with the lock, that should be sufficient, right? > > What about the two functions I cited above? Don't we want them > protected by the same lock? For register/unregister, yes, we still need to protect the list of major/minor numbers. But for the proc/partitions list, I don't think we still need it anymore, but I might be missing something here. :) thanks, greg k-h -- 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/