Re: [LSF/MM TOPIC] SCSI referrals support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/31/2011 11:40 AM, Bart Van Assche wrote:
> On Mon, Jan 24, 2011 at 9:04 AM, Hannes Reinecke <hare@xxxxxxx> wrote:
>>
>> Currently sense codes have two problems:
>>
>> - They are limited to 96 bytes. Anything larger than that will just
>>  be discarded (or crash with your patch above :-)
>> - They inherit the same lifetime than the scsi command. But for any
>>  decent handling you really need to push them into some
>>  asynchronous context as you might well be within an interrupt
>>  handler here.
>>
>> I'm currently working on a handling framework using relayfs
>> (basically blktrace for SCSI Unit Attention); I can be doing a short
>> presentation at LSF if requested.
> 
> (replying to an e-mail of two months ago)
> 
> There is another scenario where better unit attention support would
> help. Both the LIO-port and the SCST-port of the ibmvstgt driver
> suffer from the same race condition during reboot of the virtual I/O
> server (VIOS). Since the ibmvscsic driver reconnects to the ibmvscsis
> driver as soon as the ibmvscsis driver has been loaded the client
> reconnects before all LUNs have been configured in the VIOS system. So
> even if the target implementation generates an INQUIRY DATA HAS
> CHANGED unit attention condition for each LUN change, LUNs will have
> to be rescanned explicitly at the initiator side in order to get the
> initiator state in sync with the target state.

This sounds to me like the vscsi server drivers really need to change
to only register their CRQ and not initialize their CRQ until userspace has
setup all the target devices.

-Brian

-- 
Brian King
Linux on Power Virtualization
IBM Linux Technology Center


--
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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux