Page MenuHomeFreeBSD

hyperv/storvsc: use SRB flag and CAM_SEL_TIMEOUT to filter invalid LUN
ClosedPublic

Authored by honzhan_microsoft.com on Aug 16 2016, 5:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 7:22 PM
Unknown Object (File)
Mon, Nov 11, 5:05 PM
Unknown Object (File)
Tue, Oct 29, 12:16 AM
Unknown Object (File)
Mon, Oct 28, 4:59 PM
Unknown Object (File)
Sun, Oct 27, 5:36 PM
Unknown Object (File)
Oct 3 2024, 5:10 PM
Unknown Object (File)
Oct 2 2024, 7:36 PM
Unknown Object (File)
Oct 2 2024, 3:14 PM

Details

Summary

This fixes the issue of failing to hot plugin more than 7 disks.

SRB flag is set to 0x20 if the specified LUN is invalid by Hyper-v host, and
the INQUIRY response will not be set by Hyper-v host. That is why INQUIRY
on invalid lun get all zero values. In addition, TUR (Test Unit Ready) command
on invalid LUN also makes SRB flag be 0x20.

VM shall response to CAM layer with CAM_SEL_TIMEOUT to filter those
invalid LUNs. Never use CAM_DEV_NOT_THERE which will block LUN scan
for LUN number higher than 7.

Submitted by: Hongjiang Zhang <honzhan microsoft com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

honzhan_microsoft.com retitled this revision from to hyperv/storvsc: use SRB flag and CAM_SEL_TIMEOUT to filter invalid LUN.
honzhan_microsoft.com updated this object.
This revision is now accepted and ready to land.Aug 16 2016, 5:47 AM
This revision now requires review to proceed.Aug 16 2016, 6:53 AM
This revision was automatically updated to reflect the committed changes.