On Thu, 2011-01-20 at 17:14 +0100, Douglas Gilbert wrote: > On 11-01-20 05:00 PM, Hannes Reinecke wrote: > > Agenda topic proposal: > > > > SCSI referrals support has already been discussed at last year's LSF > > conference. However, the solution proposed there would not support > > failover and would require quite a lot of changes to multipathing. > > > > To enable failover it might be an idea to handle the LUN directly in > > multipathing. This would require eg: > > - request splitting > > - I/O alignment handling > > - SCSI unit attention handling > > > > I would be giving a short overview/presentation of the current > > state of the art, the shortcomings on the original proposal, > > and would like to invite a discussion on how to best support > > SCSI referrals. > > IMO a worrying aspect of the changes associated with SCSI > referrals is that sense data can now be returned with any > SCSI status (i.e. not just CHECK CONDITION). How well would > the SCSI subsystem cope with that? I know that the sg driver > (and probably bsg) would need changes, as would my libsgutils > library used by sg3_utils. Well, not necessarily. It scuppers plans to try to use the sense buffer more efficiently, but right at the moment, we can receive sense for any command. We only actually look at it on a check condition return, but that's easily updated. As I read the standard, referrals sense data on successfully completed commands is only really relevant to mp implementations, so it looks like the mid-layer should ignore it anyway (as it would now) but provide a hook for the device handlers to see it if they wanted. James -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html