Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-18 Thread David Miller
From: Christoph Hellwig <[EMAIL PROTECTED]> Date: Tue, 19 Jun 2007 07:56:29 +0200 > A SCSI pass through is of course perfectly fine. If you have a separate > block passthrough that has additional magic a separate block driver is > the way to go because it actually is simpler than a scsi driver de

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-18 Thread David Miller
From: Christoph Hellwig <[EMAIL PROTECTED]> Date: Tue, 19 Jun 2007 07:53:58 +0200 > On Fri, Jun 15, 2007 at 02:19:17PM -0700, David Miller wrote: > > Another quirk I have to deal with is that under LDOMs you > > can export full disks and also just slices. So I'll have > > to get down into the par

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-18 Thread Christoph Hellwig
On Fri, Jun 15, 2007 at 04:08:58PM -0700, David Miller wrote: > That's not gonna work, it's a totally different model. > > I have a predefined protocol over hypervisor provided "channels" and > page flipping also done by the hypervisor for the bulk data transfer. > For the client side I cannot cha

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-18 Thread Christoph Hellwig
On Fri, Jun 15, 2007 at 02:19:17PM -0700, David Miller wrote: > Another quirk I have to deal with is that under LDOMs you > can export full disks and also just slices. So I'll have > to get down into the partition machinery to support that > somehow. What's the problem with that? Partition machi

Re: [patch 5/6] ps3: ROM Storage Driver

2007-06-18 Thread Christoph Hellwig
Looks pretty nice. Some more comments: - no need for the BLK_DEV_SR dependency, it should depend on SCSI instead (which might be implied by beeing in the scsi menu, don't remember that detail) - ps3rom_priv should probably be an inline - the cmd field in struct ps3rom_private should pro

Re: [patch 4/6] ps3: Disk Storage Driver

2007-06-18 Thread Christoph Hellwig
On Fri, Jun 15, 2007 at 01:39:23PM +0200, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven <[EMAIL PROTECTED]> > > Add a Disk Storage Driver for the PS3: > - Implemented as a block device driver with a dynamic major > - Disk names (and partitions) are of the format ps3d%c(%u) > - Uses so

Re: [PATCH 2/2] iscsi_iser: convert to use the data buffer accessors

2007-06-18 Thread FUJITA Tomonori
From: Mike Christie <[EMAIL PROTECTED]> Subject: Re: [PATCH 2/2] iscsi_iser: convert to use the data buffer accessors Date: Mon, 18 Jun 2007 13:07:19 -0500 > FUJITA Tomonori wrote: > > From: Erez Zilber <[EMAIL PROTECTED]> > > Subject: Re: [PATCH 2/2] iscsi_iser: convert to use the data buffer >

Re: [PATCH 3/5 v2] firewire: fw-sbp2: use sdev->hostdata

2007-06-18 Thread Stefan Richter
Kristian Høgsberg wrote: > You're doing the multi-LU work? I expect to do it at next weekend. -- Stefan Richter -=-=-=== -==- =--=- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [PATCH 2/5 v2] firewire: fw-sbp2: let SCSI shutdown commands through before logout

2007-06-18 Thread Stefan Richter
Kristian Høgsberg wrote: > On 6/18/07, Stefan Richter <[EMAIL PROTECTED]> wrote: ... >> + scsi_remove_host(host); >> sbp2_send_management_orb(sd->unit, sd->node_id, sd->generation, >> SBP2_LOGOUT_REQUEST, sd->login_id, NULL); >> - >> - scsi_remov

Re: [PATCH 2/2] iscsi_iser: convert to use the data buffer accessors

2007-06-18 Thread Mike Christie
FUJITA Tomonori wrote: > From: Erez Zilber <[EMAIL PROTECTED]> > Subject: Re: [PATCH 2/2] iscsi_iser: convert to use the data buffer accessors > Date: Sun, 03 Jun 2007 16:56:47 +0300 > >> FUJITA Tomonori wrote: >> >>> iscsi_iser: convert to use the data buffer accessors >>> >>> - remove the unnece

Re: [PATCH 3/5 v2] firewire: fw-sbp2: use sdev->hostdata

2007-06-18 Thread Kristian Høgsberg
On 6/18/07, Stefan Richter <[EMAIL PROTECTED]> wrote: I wrote: ... > - retval = scsi_add_device(host, 0, 0, lun); > - if (retval < 0) { > + sdev = __scsi_add_device(host, 0, 0, lun, sd); > + if (IS_ERR(sdev)) { We could also stick with scsi_add_device here, omit also the rest of

Re: [PATCH 3/5 v2] firewire: fw-sbp2: use sdev->hostdata

2007-06-18 Thread Stefan Richter
I wrote: ... > - retval = scsi_add_device(host, 0, 0, lun); > - if (retval < 0) { > + sdev = __scsi_add_device(host, 0, 0, lun, sd); > + if (IS_ERR(sdev)) { We could also stick with scsi_add_device here, omit also the rest of thechanges to sbp2_login(), and set sdev->hostdata later

[PATCH 3/5 v2] firewire: fw-sbp2: use sdev->hostdata

2007-06-18 Thread Stefan Richter
to simplify a few pointer expressions. Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- Update: adapt to changes in preceding patch drivers/firewire/fw-sbp2.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) Index: linux/drivers/firewire/fw-sbp2.c =

[PATCH 2/5 v2] firewire: fw-sbp2: let SCSI shutdown commands through before logout

2007-06-18 Thread Stefan Richter
This affects of course only the "soft shutdown" case, e.g. "modprobe -r firewire-sbp2", while it doesn't matter for hot unplug. Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- Update: - Do it much simpler without scsi_remove_device. - Omit the unrelated sbp2_sysfs_ieee1394_id_show hunks

RE: [PATCH] cciss: force ignore of responses to unsent scsi commands after kexec reboot

2007-06-18 Thread Miller, Mike (OS Dev)
Vivek wrote: > > I think this is not the right usage of reset_devices > parameter. This parameter instructs the driver to reset the > device before going ahead with rest of the initialization > before as underlying device might not be in a sane state. > kexec/kdump is one of the usages and t

Re: [PATCH 2/5] firewire: fw-sbp2: let SCSI shutdown commands through before logout

2007-06-18 Thread Stefan Richter
Kristian Høgsberg wrote: > On Sun, 2007-06-17 at 23:52 +0200, Stefan Richter wrote: >> This affects of course only the "soft shutdown" case, e.g. "modprobe >> -r >> firewire-sbp2", while it doesn't matter for hot unplug. > > Isn't this done when we remove the host? Yes, we only need to defer the

Re: [PATCH 5/5] firewire: fw-sbp2: implement nonexclusive login

2007-06-18 Thread Kristian Høgsberg
On Sun, 2007-06-17 at 23:55 +0200, Stefan Richter wrote: > Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> > --- > drivers/firewire/fw-sbp2.c | 22 +++--- > 1 file changed, 15 insertions(+), 7 deletions(-) Looks good to me. Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]>

Re: [PATCH 2/5] firewire: fw-sbp2: let SCSI shutdown commands through before logout

2007-06-18 Thread Kristian Høgsberg
On Sun, 2007-06-17 at 23:52 +0200, Stefan Richter wrote: > This affects of course only the "soft shutdown" case, e.g. "modprobe > -r > firewire-sbp2", while it doesn't matter for hot unplug. Isn't this done when we remove the host? Kristian - To unsubscribe from this list: send the line "unsubs

RE: [PATCH 0/0] scsi_cmnd accessors issues

2007-06-18 Thread Harrosh, Boaz
FUJITA Tomonori wrote: >> Boaz Harrosh wrote: >> Hi Tomo. >> >> I do not understand. >> - Do you not accept my first patch. This is to go in now for 2.6.23. >> It is for protection against out-of-tree and the rest of the not >> converted drivers. To not use new accessors as l-value. >> >> -

Re: [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack

2007-06-18 Thread James Bottomley
On Mon, 2007-06-18 at 15:56 +0200, Heiko Carstens wrote: > One of my current disks has an FCP LUN of 0x401040ba... That's just That's correct and coped with ... SCSI LUNs are BE ... this is still only a four byte lun ... it actually says Flat Space addressing, 2 level LUN: 16-168 > the li

Re: [PATCH 0/0] scsi_cmnd accessors issues

2007-06-18 Thread FUJITA Tomonori
From: Boaz Harrosh <[EMAIL PROTECTED]> Subject: Re: [PATCH 0/0] scsi_cmnd accessors issues Date: Sun, 17 Jun 2007 12:45:17 +0300 > Boaz Harrosh wrote: > > FUJITA Tomonori wrote: > >> There are just two llds. I suspect that we can fix them. Or they can > >> access to the data directly (without the

[GIT PATCH] SCSI bug fixes for 2.6.22-rc5

2007-06-18 Thread James Bottomley
Now that we're stabilising, this is a simple push of two (fairly critical) bug fixes. You can get it from: master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6.git The changelog is: commit 204abf28679cd55a8e254b18965583bb1c8bc739 Author: Thomas Bogendoerfer <[EMAIL PROTECTED]> Dat

Re: [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack

2007-06-18 Thread Heiko Carstens
On Mon, Jun 18, 2007 at 10:47:28AM +0200, Hannes Reinecke wrote: > James Bottomley wrote: > > On Tue, 2007-05-29 at 15:29 +0200, Swen Schillig wrote: > >> From: Christof Schmitt <[EMAIL PROTECTED]> > >> > >> zfcp reported units to the SCSI stack starting > >> with number 0. LUN 0 reported to the S

Re: [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack

2007-06-18 Thread Swen Schillig
On Monday 18 June 2007 10:47, Hannes Reinecke wrote: > James Bottomley wrote: > > On Tue, 2007-05-29 at 15:29 +0200, Swen Schillig wrote: > >> From: Christof Schmitt <[EMAIL PROTECTED]> > >> > >> zfcp reported units to the SCSI stack starting > >> with number 0. LUN 0 reported to the SCSI stack is

Re: [PATCH 2/2] iscsi_iser: convert to use the data buffer accessors

2007-06-18 Thread FUJITA Tomonori
From: Erez Zilber <[EMAIL PROTECTED]> Subject: Re: [PATCH 2/2] iscsi_iser: convert to use the data buffer accessors Date: Sun, 03 Jun 2007 16:56:47 +0300 > FUJITA Tomonori wrote: > > > > > iscsi_iser: convert to use the data buffer accessors > > > > - remove the unnecessary map_single path. > > >

Calling scsi_done() after the SCSI timer is fired

2007-06-18 Thread Hiroki Takada
Hi I wonder if somebody could advice me. I am a SCSI LLDD developer. I have a question about an implementation of eh_abort_handler() for SCSI hosts when SCSI command timer is fired. I may check out the queue and look for a command given as an argument to abort. But, what I should do when the com

[PATCH 10/11] Fixup scsi_sysfs_add_sdev()

2007-06-18 Thread Hannes Reinecke
scsi_sysfs_add_sdev() should not modify the sdev state as it doesn't require any hardware access. And we should take care to retrace our steps on failure. Signed-off-by: Hannes Reinecke <[EMAIL PROTECTED]> --- drivers/scsi/scsi_sysfs.c | 25 +++-- 1 files changed, 11 insert

[PATCH 11/11] State machine cleanup

2007-06-18 Thread Hannes Reinecke
sdev state SDEV_DEL should only be entered from SDEV_CANCEL. This way we'll have a better check if all error paths are covered. And we should always call scsi_destroy_device() after scsi_sysfs_remove_sdev(). Signed-off-by: Hannes Reinecke <[EMAIL PROTECTED]> --- drivers/scsi/scsi_scan.c | 11 +

[PATCH 8/11] Remove obsolete scsi_destroy_sdev() function

2007-06-18 Thread Hannes Reinecke
scsi_destroy_sdev() is now obsolete. Delete it. Signed-off-by: Hannes Reinecke <[EMAIL PROTECTED]> --- drivers/scsi/scsi_scan.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index d1bca80..bf62089 100644 --- a/

[PATCH 9/11] Implement scsi_resurrect_device()

2007-06-18 Thread Hannes Reinecke
This patch implements a function scsi_resurrect_device() which elevates a sdev from state SDEV_CANCEL back into SDEV_RUNNING. So during a scan any sdev in SDEV_DEL is put into SDEV_CANCEL and then scsi_resurrect_device() is called. This will put the device into SDEV_RUNNING and the scan can procee

[PATCH 7/11] Implement scsi_configure_device()

2007-06-18 Thread Hannes Reinecke
This patch implements scsi_configure_device(). This function elevates an sdev into SDEV_RUNNING and configures it properly so that I/O is possible on the device. Signed-off-by: Hannes Reinecke <[EMAIL PROTECTED]> --- drivers/scsi/scsi_scan.c | 67 +

[PATCH 5/11] Free sdev class device from release function

2007-06-18 Thread Hannes Reinecke
For a clean teardown of a sdev the class device should really be freed from the sdev's release function. This way we don't have to worry about refcounting the class device structures itself. And the functions are now better aligned with the sdev state model; _scsi_remove_device() transitions the s

[PATCH 6/11] Rename __scsi_remove_device() into scsi_sysfs_remove_sdev()

2007-06-18 Thread Hannes Reinecke
__scsi_remove_device() is actually the counterpart to scsi_sysfs_add_sdev(). So we'd better rename it to avoid confusion. Signed-off-by: Hannes Reinecke <[EMAIL PROTECTED]> --- drivers/scsi/scsi_priv.h |2 +- drivers/scsi/scsi_scan.c |4 ++-- drivers/scsi/scsi_sysfs.c | 10 +-

[PATCH 3/11] Remove stale put_device() from scsi_sysfs_add_sdev()

2007-06-18 Thread Hannes Reinecke
In one obscure error path someone decided to do a put_device() on the sdev parent. As this is the only reference to it I don't thing it makes much sense. Remove it. Signed-off-by: Hannes Reinecke <[EMAIL PROTECTED]> --- drivers/scsi/scsi_sysfs.c |1 - 1 files changed, 0 insertions(+), 1 dele

[PATCH 4/11] Implement SDEV_NEW state

2007-06-18 Thread Hannes Reinecke
When a scsi_device is allocated it's state is set to SDEV_CREATED. However, we don't have any chance to detect if slave_alloc() has run successfully or not. This patch introduces a state SDEV_NEW which is used instead of SDEV_CREATED upon initial sdev creation. After slave_alloc() has run successf

[PATCH 1/11] Add scsi_destroy_device()

2007-06-18 Thread Hannes Reinecke
This patchs adds a new helper scsi_destroy_device(). It will transition and sdev into the 'SDEV_DEL' state. Signed-off-by: Hannes Reinecke <[EMAIL PROTECTED]> --- drivers/scsi/scsi_scan.c |3 +-- include/scsi/scsi_device.h |6 ++ 2 files changed, 7 insertions(+), 2 deletions(-) di

[PATCH 2/11] Improve error messages in scsi_sysfs_add_sdev()

2007-06-18 Thread Hannes Reinecke
When we fail to add a device to the driver core, only the very helpful message 'error X' is displayed. Print out some meaningful messages. Signed-off-by: Hannes Reinecke <[EMAIL PROTECTED]> --- drivers/scsi/scsi_sysfs.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH 0/11] Take #2: Resurrect sdev during scanning

2007-06-18 Thread Hannes Reinecke
Hi James, this is a rework of my earlier patchset to address the outstanding 'sdev oops during scanning' issue. Problem is that any sdev in state 'SDEV_DEL' is still visible to the host until the refcount drops to zero. When a scan occurs during this time we access a half-initialized sdev and all

Re: [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack

2007-06-18 Thread Hannes Reinecke
James Bottomley wrote: > On Tue, 2007-05-29 at 15:29 +0200, Swen Schillig wrote: >> From: Christof Schmitt <[EMAIL PROTECTED]> >> >> zfcp reported units to the SCSI stack starting >> with number 0. LUN 0 reported to the SCSI stack is usually >> not the FCP LUN 0. When scanning for devices, >> th