From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [BUG 2.6.17-git] kmem_cache_create: duplicate cache scsi_cmd_cache Date: Sat, 13 May 2006 00:37:12 +0100 Message-ID: <20060512233711.GW27946@ftp.linux.org.uk> References: <20060512203416.GA17120@flint.arm.linux.org.uk> <20060512214354.GP27946@ftp.linux.org.uk> <20060512215520.GH17120@flint.arm.linux.org.uk> <20060512220807.GR27946@ftp.linux.org.uk> <20060512222816.GS27946@ftp.linux.org.uk> <20060512224804.GT27946@ftp.linux.org.uk> <20060512225101.GU27946@ftp.linux.org.uk> <20060512232131.GV27946@ftp.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:12450 "EHLO ZenIV.linux.org.uk") by vger.kernel.org with ESMTP id S932148AbWELXhN (ORCPT ); Fri, 12 May 2006 19:37:13 -0400 Content-Disposition: inline In-Reply-To: <20060512232131.GV27946@ftp.linux.org.uk> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Linus Torvalds Cc: Erik Mouw , Or Gerlitz , linux-scsi@vger.kernel.org, axboe@suse.de, Linux Kernel Mailing List On Sat, May 13, 2006 at 12:21:31AM +0100, Al Viro wrote: > The problem is with disk->driverfs_dev, not disk itself. Block layer > has no fscking business touching it after del_gendisk() - if nothing else, > we might have _no_ underlying object at all from the very beginning. > > So anything that wants events related to partitions, let alone mounting, > can't expect to see PHYSDEV... crap. Moreover, it can bloody well > get to PHYSDEV... itself *if* it wants to and if it's there. There's > a reason why we have that symlink in sys/block/ and userland can > bloody well access it on its own. BTW, the best option is to kill bdev_uevent() again. Short of that, skip PHYSDEV mess if disk doesn't have GENHD_FL_UP.