Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-31 Thread Ewan Milne
Thanks to everyone for the comments on this patch series. Based upon the feedback, I'll be making the following changes to the patch series before submitting it: - Remove patch 1/9 "Detect overflow of sense data buffer" - Change name of "sdev_evt_thread" to "sdev_evt_work" - Change name

RE: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-28 Thread Shyam_Iyer
bject: Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention > handling > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 1/24/2013 8:38 AM, Bart Van Assche wrote: > > > Let me ask this another way. SAN users expect that the LUN list at the > >

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-28 Thread James Bottomley
On Mon, 2013-01-28 at 16:48 +0100, Hannes Reinecke wrote: > On 01/28/2013 04:44 PM, Bart Van Assche wrote: > > On 01/28/13 16:05, Jeremy Linton wrote: > >> What I think your looking for is RSCN (Registered State Change > >> notification). > >> Hook that, and then check the name server. This will te

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-28 Thread Mike Christie
On 01/28/2013 09:52 AM, Jeremy Linton wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 1/28/2013 9:44 AM, Bart Van Assche wrote: >> when using Fibre Channel as transport layer. I'm looking for a solution >> that also works with other SCSI transports, e.g. iSCSI and SRP. > >

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-28 Thread Ewan Milne
On Mon, 2013-01-28 at 09:52 -0600, Jeremy Linton wrote: > On 1/28/2013 9:44 AM, Bart Van Assche wrote: > > when using Fibre Channel as transport layer. I'm looking for a solution > > that also works with other SCSI transports, e.g. iSCSI and SRP. > > Doesn't iSCSI have a SNS server you can

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-28 Thread Jeremy Linton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/28/2013 9:44 AM, Bart Van Assche wrote: > when using Fibre Channel as transport layer. I'm looking for a solution > that also works with other SCSI transports, e.g. iSCSI and SRP. Doesn't iSCSI have a SNS server you can subscribe to that

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-28 Thread Hannes Reinecke
On 01/28/2013 04:44 PM, Bart Van Assche wrote: On 01/28/13 16:05, Jeremy Linton wrote: What I think your looking for is RSCN (Registered State Change notification). Hook that, and then check the name server. This will tell you when ports get added/removed. You can then report luns against lun 0

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-28 Thread Bart Van Assche
On 01/28/13 16:05, Jeremy Linton wrote: What I think your looking for is RSCN (Registered State Change notification). Hook that, and then check the name server. This will tell you when ports get added/removed. You can then report luns against lun 0 of all the known target ports. This allows you t

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-28 Thread Jeremy Linton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/24/2013 8:38 AM, Bart Van Assche wrote: > Let me ask this another way. SAN users expect that the LUN list at the > initiator side gets updated automatically after a SAN configuration change. > How should a SAN system communicate to a SCSI initia

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-27 Thread Hannes Reinecke
On 01/26/2013 07:20 PM, Mike Christie wrote: On 01/24/2013 09:15 AM, Hannes Reinecke wrote: On 01/24/2013 04:00 PM, Mike Christie wrote: On 01/24/2013 07:51 AM, Hannes Reinecke wrote: On 01/24/2013 03:38 PM, Bart Van Assche wrote: On Thu, Jan 24, 2013 at 4:38 AM, Hannes Reinecke wrote: As f

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-26 Thread Mike Christie
On 01/24/2013 09:15 AM, Hannes Reinecke wrote: > On 01/24/2013 04:00 PM, Mike Christie wrote: >> On 01/24/2013 07:51 AM, Hannes Reinecke wrote: >>> On 01/24/2013 03:38 PM, Bart Van Assche wrote: On Thu, Jan 24, 2013 at 4:38 AM, Hannes Reinecke wrote: > As for AEN, does iSCSI _do_ AEN? I t

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Mike Christie
On 01/24/2013 03:02 PM, Ewan Milne wrote: > On Thu, 2013-01-24 at 07:01 -0700, Mike Christie wrote: >> On 01/24/2013 04:38 AM, Hannes Reinecke wrote: >>> On 01/24/2013 01:19 AM, Bart Van Assche wrote: On Fri, Jan 18, 2013 at 9:27 AM, Ewan D. Milne wrote: > This patch set adds changes to t

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Ewan Milne
On Thu, 2013-01-24 at 07:01 -0700, Mike Christie wrote: > On 01/24/2013 04:38 AM, Hannes Reinecke wrote: > > On 01/24/2013 01:19 AM, Bart Van Assche wrote: > >> On Fri, Jan 18, 2013 at 9:27 AM, Ewan D. Milne wrote: > >>> This patch set adds changes to the SCSI mid-layer, sysfs and scsi_debug > >>>

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Ewan Milne
On Thu, 2013-01-24 at 16:15 +0100, Hannes Reinecke wrote: > On 01/24/2013 04:00 PM, Mike Christie wrote: > > On 01/24/2013 07:51 AM, Hannes Reinecke wrote: > >> On 01/24/2013 03:38 PM, Bart Van Assche wrote: > >>> On Thu, Jan 24, 2013 at 4:38 AM, Hannes Reinecke wrote: > As for AEN, does iSCS

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Hannes Reinecke
On 01/24/2013 04:00 PM, Mike Christie wrote: On 01/24/2013 07:51 AM, Hannes Reinecke wrote: On 01/24/2013 03:38 PM, Bart Van Assche wrote: On Thu, Jan 24, 2013 at 4:38 AM, Hannes Reinecke wrote: As for AEN, does iSCSI _do_ AEN? I thought it got removed ... If it does, though, it should sched

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Mike Christie
On 01/24/2013 07:51 AM, Hannes Reinecke wrote: > On 01/24/2013 03:38 PM, Bart Van Assche wrote: >> On Thu, Jan 24, 2013 at 4:38 AM, Hannes Reinecke wrote: >>> As for AEN, does iSCSI _do_ AEN? I thought it got removed ... >>> >>> If it does, though, it should schedule an event on its own whenever >

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Hannes Reinecke
On 01/24/2013 03:38 PM, Bart Van Assche wrote: On Thu, Jan 24, 2013 at 4:38 AM, Hannes Reinecke wrote: As for AEN, does iSCSI _do_ AEN? I thought it got removed ... If it does, though, it should schedule an event on its own whenever an AER is received. The same goes for LLDDs with vendor-speci

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Bart Van Assche
On Thu, Jan 24, 2013 at 4:38 AM, Hannes Reinecke wrote: > As for AEN, does iSCSI _do_ AEN? I thought it got removed ... > > If it does, though, it should schedule an event on its own whenever an AER > is received. The same goes for LLDDs with vendor-specific AENs; thinking of > megaraid_sas here .

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Mike Christie
On 01/24/2013 04:38 AM, Hannes Reinecke wrote: > On 01/24/2013 01:19 AM, Bart Van Assche wrote: >> On Fri, Jan 18, 2013 at 9:27 AM, Ewan D. Milne wrote: >>> This patch set adds changes to the SCSI mid-layer, sysfs and scsi_debug >>> to provide enhanced support for Unit Attention conditions, as wel

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Ewan Milne
On Thu, 2013-01-24 at 12:38 +0100, Hannes Reinecke wrote: > On 01/24/2013 01:19 AM, Bart Van Assche wrote: > > On Fri, Jan 18, 2013 at 9:27 AM, Ewan D. Milne wrote: > >> This patch set adds changes to the SCSI mid-layer, sysfs and scsi_debug > >> to provide enhanced support for Unit Attention cond

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Ewan Milne
On Wed, 2013-01-23 at 17:19 -0700, Bart Van Assche wrote: > On Fri, Jan 18, 2013 at 9:27 AM, Ewan D. Milne wrote: > > This patch set adds changes to the SCSI mid-layer, sysfs and scsi_debug > > to provide enhanced support for Unit Attention conditions, as well as > > detection of reported sense da

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-24 Thread Hannes Reinecke
On 01/24/2013 01:19 AM, Bart Van Assche wrote: On Fri, Jan 18, 2013 at 9:27 AM, Ewan D. Milne wrote: This patch set adds changes to the SCSI mid-layer, sysfs and scsi_debug to provide enhanced support for Unit Attention conditions, as well as detection of reported sense data overflow conditions

Re: [PATCH RFC 0/9] [SCSI] Enhanced sense and Unit Attention handling

2013-01-23 Thread Bart Van Assche
On Fri, Jan 18, 2013 at 9:27 AM, Ewan D. Milne wrote: > This patch set adds changes to the SCSI mid-layer, sysfs and scsi_debug > to provide enhanced support for Unit Attention conditions, as well as > detection of reported sense data overflow conditions and some changes > to sense data processing