From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 22 Jul 2002 16:53:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 22 Jul 2002 16:53:57 -0400 Received: from carisma.slowglass.com ([195.224.96.167]:27400 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id ; Mon, 22 Jul 2002 16:53:53 -0400 Date: Mon, 22 Jul 2002 21:57:00 +0100 From: Christoph Hellwig To: Pete Zaitcev Cc: Kurt Garloff , Linux SCSI list , Linux kernel list Subject: Re: Patch for 256 disks in 2.4 Message-ID: <20020722215700.A12813@infradead.org> Mail-Followup-To: Christoph Hellwig , Pete Zaitcev , Kurt Garloff , Linux SCSI list , Linux kernel list References: <20020720195729.C20953@devserv.devel.redhat.com> <20020722170840.GB19587@nbkurt.etpnet.phys.tue.nl> <20020722164856.D19904@devserv.devel.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020722164856.D19904@devserv.devel.redhat.com>; from zaitcev@redhat.com on Mon, Jul 22, 2002 at 04:48:56PM -0400 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2002 at 04:48:56PM -0400, Pete Zaitcev wrote: > > I've written a patch for sd that makes the allocation of majors > > dynamic. The driver just takes 8 at sd_init and further majors are > > allocated when disks are attached. Which saves a lot of memory for > > all the gendisk and hd_struct stuff in case you do not have a lot of > > SCSI disks connected. The patch does support up to 160 SD majors, > > though currently, it won't succeed getting more than 132 majors. > > That's wonderful, but we cannot ship that. There is no userland > support to create device nodes in dynamic fashion and to ensure > that they do not conflict. This is why Arjan filed for and received > additional majors. Dynamic solutions need some time to float about > the community, I think. I might be stupid, but it looks to me like we want both the new majors and the kernel structs dynamically allocated when they get actually used..