Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-04-14 Thread Christoph Hellwig
On Thu, Apr 14, 2005 at 01:24:33PM -0500, Matt Domsch wrote: > I posted this back in February, with no response (good or bad). > I still think this is useful, and would appreciate feedback. I don't like this at all. It's adding a kernel roundtrip for things that should be handled in userland. -

[RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-04-14 Thread Matt Domsch
I posted this back in February, with no response (good or bad). I still think this is useful, and would appreciate feedback. Thanks, Matt Date: Mon, 7 Feb 2005 12:27:53 -0600 From: Matt Domsch <[EMAIL PROTECTED]> To: linux-scsi@vger.kernel.org, [EMAIL PROTECTED] Subject: [RFC][PATCH 2.6.

Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-08 Thread Matt Domsch
On Tue, Feb 08, 2005 at 05:19:23PM -0600, Matt Domsch wrote: > On Mon, Feb 07, 2005 at 12:27:53PM -0600, Matt Domsch wrote: > > Below is a patch to add some hotplug infrastructure to the Linux SCSI > > subsystem. > > I've added and reworked the megaraid_mbox driver to make use of this > new infras

Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-08 Thread Matt Domsch
On Tue, Feb 08, 2005 at 05:19:23PM -0600, Matt Domsch wrote: > I've added and reworked the megaraid_mbox driver to make use of this > new infrastructure. I'll send that patch next. The rest is unchanged > from yesterday. This is the megaraid_mbox 2.20.4.5 patch as submitted by LSI on-list last w

Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-08 Thread Matt Domsch
On Mon, Feb 07, 2005 at 12:27:53PM -0600, Matt Domsch wrote: > Below is a patch to add some hotplug infrastructure to the Linux SCSI > subsystem. I've added and reworked the megaraid_mbox driver to make use of this new infrastructure. I'll send that patch next. The rest is unchanged from yesterd

Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-07 Thread Matt Domsch
On Mon, Feb 07, 2005 at 01:22:29PM -0600, Brian King wrote: > Just curious why the following flow would not work/be preferred: > > 1. echo "2" > /sys/class/scsi_host/host2/logical_drive_created > 2. megaraid_mbox.c sysfs method converts logical drive number to HCTL > value, calls scsi_add_device.

Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-07 Thread Brian King
Matt Domsch wrote: Below is a patch to add some hotplug infrastructure to the Linux SCSI subsystem. New files: include/scsi/scsi_hotplug.h drivers/scsi/scsi_hotplug.c implements a new exported function: extern int scsi_topology_hctl_action(struct Scsi_Host *shost, unsigned int channel,

Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-07 Thread Matt Domsch
On Mon, Feb 07, 2005 at 12:27:53PM -0600, Matt Domsch wrote: > /etc/hotplug/scsi_topology.agent > handles the hotplug call, and invokes /sys/class/scsi_host/hostX/scan > and /sys/class/scsi_device/H:C:T:L:/device/delete as appropriate. And here's scsi_topology.agent. Signed-off-by: Matt Domsch

Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-07 Thread Matt Domsch
On Mon, Feb 07, 2005 at 12:27:53PM -0600, Matt Domsch wrote: > In addition, two more infrastructure pieces are necessary: > udev-050-scsi_topology.patch - adds the subsystem name "scsi_topology" > to the list of devices *not* to wait for the creation of files in > sysfs for - scsi_topology devices

Re: [RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-07 Thread Matt Domsch
On Mon, Feb 07, 2005 at 12:27:53PM -0600, Matt Domsch wrote: > Modified files: > drivers/scsi/megaraid/megaraid_mbox.c > (will follow in a separate patch) > is the user of this new function. For example. I will rework this to follow the patch submitted last week by LSI to accomplish something s

[RFC][PATCH 2.6.11-rc2] Linux SCSI hotplug infrastructure

2005-02-07 Thread Matt Domsch
Below is a patch to add some hotplug infrastructure to the Linux SCSI subsystem. New files: include/scsi/scsi_hotplug.h drivers/scsi/scsi_hotplug.c implements a new exported function: extern int scsi_topology_hctl_action(struct Scsi_Host *shost, unsigned int channel,