* [LSF/MM TOPIC] Integrated Unit Attention handling
@ 2014-12-15 15:17 Hannes Reinecke
2014-12-16 8:32 ` [Lsf-pc] " Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Hannes Reinecke @ 2014-12-15 15:17 UTC (permalink / raw)
To: lsf-pc@lists.linux-foundation.org; +Cc: linux-scsi@vger.kernel.org
Hi all,
I'd like to discusss 'Integrated Unit Attention handling' at LSF/MM
2015.
Currently we're interpreting some Unit Attention codes and send out
uevents, with the hope that some userspace application will make use
of this.
However, some UAs are easily handled within the kernel directly, eg
- REPORT LUN DATA CHANGED: this could easily trigger a rescan of the
scsi host driving that LUN.
- INQUIRY DATA CHANGED: Rescan the VPD pages and INQUIRY data itself
When implementing such an integrated UA handling, however, we would
need to revisit the design choice of having the inquiry data fixed
to struct scsi_device. Currently any modification to the inquiry
data requires a complete device removal; this is not really feasible
for integrated event handling.
I'd like to discuss if such an integrated UA handling is desirable
and, if so, if devices should become flexible to have the inquiry
data changed on the fly.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Lsf-pc] [LSF/MM TOPIC] Integrated Unit Attention handling
2014-12-15 15:17 [LSF/MM TOPIC] Integrated Unit Attention handling Hannes Reinecke
@ 2014-12-16 8:32 ` Christoph Hellwig
2014-12-16 15:30 ` Hannes Reinecke
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2014-12-16 8:32 UTC (permalink / raw)
To: Hannes Reinecke
Cc: lsf-pc@lists.linux-foundation.org, linux-scsi@vger.kernel.org
Sounds like a good topic, altough I hope we'll see considerable
progress before LSF on this item..
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Lsf-pc] [LSF/MM TOPIC] Integrated Unit Attention handling
2014-12-16 8:32 ` [Lsf-pc] " Christoph Hellwig
@ 2014-12-16 15:30 ` Hannes Reinecke
2014-12-17 9:31 ` Christoph Hellwig
2014-12-17 11:54 ` Bart Van Assche
0 siblings, 2 replies; 5+ messages in thread
From: Hannes Reinecke @ 2014-12-16 15:30 UTC (permalink / raw)
To: Christoph Hellwig
Cc: lsf-pc@lists.linux-foundation.org, linux-scsi@vger.kernel.org
On 12/16/2014 09:32 AM, Christoph Hellwig wrote:
> Sounds like a good topic, altough I hope we'll see considerable
> progress before LSF on this item..
>
Full integration requires a change of the SCSI device model;
currently struct scsi_device has a fixed type and inquiry data, so
rescan is essentially a no-op.
So the current model requires the complete removal of the device and
a rescan on the host.
Doing that from within the SCSI stack will open quite some
interesting race conditions, let alone interesting userspace
interactions.
Alternatively we can change the model to allow for a change of the
inquiry data, but that should be discussed.
And then there is the Power-On/Reset handling, which probably would
warrant a discussion on its own ...
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Lsf-pc] [LSF/MM TOPIC] Integrated Unit Attention handling
2014-12-16 15:30 ` Hannes Reinecke
@ 2014-12-17 9:31 ` Christoph Hellwig
2014-12-17 11:54 ` Bart Van Assche
1 sibling, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2014-12-17 9:31 UTC (permalink / raw)
To: Hannes Reinecke
Cc: Christoph Hellwig, lsf-pc@lists.linux-foundation.org,
linux-scsi@vger.kernel.org
On Tue, Dec 16, 2014 at 04:30:34PM +0100, Hannes Reinecke wrote:
> On 12/16/2014 09:32 AM, Christoph Hellwig wrote:
> > Sounds like a good topic, altough I hope we'll see considerable
> > progress before LSF on this item..
> >
> Full integration requires a change of the SCSI device model;
> currently struct scsi_device has a fixed type and inquiry data, so
> rescan is essentially a no-op.
> So the current model requires the complete removal of the device and
> a rescan on the host.
> Doing that from within the SCSI stack will open quite some
> interesting race conditions, let alone interesting userspace
> interactions.
> Alternatively we can change the model to allow for a change of the
> inquiry data, but that should be discussed.
For now we can just react to new LUNs or size changes, which would be
what most people want, and offline devices for anything else.
That alone would be a gigantic improvement.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Lsf-pc] [LSF/MM TOPIC] Integrated Unit Attention handling
2014-12-16 15:30 ` Hannes Reinecke
2014-12-17 9:31 ` Christoph Hellwig
@ 2014-12-17 11:54 ` Bart Van Assche
1 sibling, 0 replies; 5+ messages in thread
From: Bart Van Assche @ 2014-12-17 11:54 UTC (permalink / raw)
To: Hannes Reinecke, Christoph Hellwig
Cc: lsf-pc@lists.linux-foundation.org, linux-scsi@vger.kernel.org
On 12/16/14 16:30, Hannes Reinecke wrote:
> On 12/16/2014 09:32 AM, Christoph Hellwig wrote:
>> Sounds like a good topic, altough I hope we'll see considerable
>> progress before LSF on this item..
>
> Full integration requires a change of the SCSI device model;
> currently struct scsi_device has a fixed type and inquiry data, so
> rescan is essentially a no-op.
> So the current model requires the complete removal of the device and
> a rescan on the host.
> Doing that from within the SCSI stack will open quite some
> interesting race conditions, let alone interesting userspace
> interactions.
> Alternatively we can change the model to allow for a change of the
> inquiry data, but that should be discussed.
>
> And then there is the Power-On/Reset handling, which probably would
> warrant a discussion on its own ...
Hello Hannes and Christoph,
If any of the topics raised by Hannes have not been resolved before the
LSF/MM starts I'm definitely interested in attending this discussion.
Bart.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-17 11:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15 15:17 [LSF/MM TOPIC] Integrated Unit Attention handling Hannes Reinecke
2014-12-16 8:32 ` [Lsf-pc] " Christoph Hellwig
2014-12-16 15:30 ` Hannes Reinecke
2014-12-17 9:31 ` Christoph Hellwig
2014-12-17 11:54 ` Bart Van Assche
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox