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)
Feb 14 2024, 4:40 AM
Unknown Object (File)
Jan 29 2024, 1:22 AM
Unknown Object (File)
Jan 4 2024, 2:49 PM
Unknown Object (File)
Dec 30 2023, 4:57 PM
Unknown Object (File)
Dec 8 2023, 10:05 AM
Unknown Object (File)
Nov 13 2023, 12:43 PM
Unknown Object (File)
Nov 13 2023, 11:48 AM
Unknown Object (File)
Oct 25 2023, 5:59 AM

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

Lint
Lint Skipped
Unit
Tests Skipped

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.