public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Gregoire Favre <greg@ulima.unil.ch>
Cc: Kai Makisara <Kai.Makisara@kolumbus.fi>, linux-kernel@vger.kernel.org
Subject: Re: 2.5.48 and SCSI ? (devfs problem!!!)
Date: Mon, 18 Nov 2002 21:17:30 -0800	[thread overview]
Message-ID: <20021118211730.A24422@eng2.beaverton.ibm.com> (raw)
In-Reply-To: <20021118214922.GA9613@ulima.unil.ch>; from greg@ulima.unil.ch on Mon, Nov 18, 2002 at 10:49:22PM +0100

On Mon, Nov 18, 2002 at 10:49:22PM +0100, Gregoire Favre wrote:
> On Mon, Nov 18, 2002 at 11:33:58PM +0200, Kai Makisara wrote:
> > I had the same problem with sym53c8xxx_2 when devfs was configured into
> > the kernel (but not mounted). Then I made a kernel with devfs disabled and
> > now this boots (and seems to work).
> 
> Hello,
> 
> well, I "need" devfs and it is mounted... I really don't want to create
> all the devices I use... At least now I know where does the prolem come
> from ;-)
> 
> Thank you very much,
> 
> 	Grégoire

Here's a patch you can try out, I already posted this to linux-scsi
as a fix for /proc/scsi not showing up, I'll make sure James or
someone pushes it to Linus' tree. I don't use devfs.

This is against linus bk but should apply fine against 2.5.48.

-- Patrick Mansfield

===== scsi.c 1.67 vs edited =====
--- 1.67/drivers/scsi/scsi.c	Mon Nov 18 08:42:42 2002
+++ edited/scsi.c	Mon Nov 18 16:14:23 2002
@@ -2225,6 +2225,8 @@
 			printk(KERN_ERR "SCSI: can't init sg mempool %s\n", sgp->name);
 	}
 
+	scsi_init_procfs();
+	scsi_devfs_handle = devfs_mk_dir(NULL, "scsi", NULL);
 	scsi_host_init();
 	scsi_dev_info_list_init(scsi_dev_flags);
 	bus_register(&scsi_driverfs_bus_type);
@@ -2236,9 +2238,10 @@
 {
 	int i;
 
+	bus_unregister(&scsi_driverfs_bus_type);
+	scsi_dev_info_list_delete();
 	devfs_unregister(scsi_devfs_handle);
 	scsi_exit_procfs();
-	scsi_dev_info_list_delete();
 
 	for (i = 0; i < SG_MEMPOOL_NR; i++) {
 		struct scsi_host_sg_pool *sgp = scsi_sg_pools + i;

  reply	other threads:[~2002-11-19  5:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-18 20:36 2.5.48 and SCSI ? Gregoire Favre
2002-11-18 21:13 ` Gregoire Favre
2002-11-18 21:33 ` Kai Makisara
2002-11-18 21:49   ` 2.5.48 and SCSI ? (devfs problem!!!) Gregoire Favre
2002-11-19  5:17     ` Patrick Mansfield [this message]
2002-11-19  7:51       ` Gregoire Favre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021118211730.A24422@eng2.beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=Kai.Makisara@kolumbus.fi \
    --cc=greg@ulima.unil.ch \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox