scsi: devinfo: Add Microsoft iSCSI target to 1024 sector blacklist
PATCH 1/1 scsi: devinfo: Add Microsoft iSCSI target to 1024 sector blacklist
The Windows Server 2016 iSCSI target doesn't work with the Linux kernel initiator since the kernel started sending larger requests by default, nor does it implement the block limits VPD page. Apply the sector limit workaround for these targets.
--- drivers/scsi/scsi_devinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/scsi_devinfo.c +1 -1
@@ -213,7 +213,7 @@ static struct { {"Medion", "Flash XL MMC/SD", "2.6D", BLIST_FORCELUN}, {"MegaRAID", "LD", NULL, BLIST_FORCELUN}, {"MICROP", "4110", NULL, BLIST_NOTQ}, - {"MSFT", "Virtual HD", NULL, BLIST_NO_RSOC}, + {"MSFT", "Virtual HD", NULL, BLIST_MAX_1024 | BLIST_NO_RSOC}, {"MYLEX", "DACARMRB", "*", BLIST_REPORTLUN2}, {"nCipher", "Fastness Crypto", NULL, BLIST_FORCELUN}, {"NAKAMICH", "MJ-4.8S", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
Signature · 1 line
2.9.5
Long, KY: Please confirm.
Quoted 23 lines
The Windows Server 2016 iSCSI target doesn't work with the Linux kernel initiator since the kernel started sending larger requests by default, nor does it implement the block limits VPD page. Apply the sector limit workaround for these targets.
Signed-off-by Ross Lagerwall <[email protected]>--- drivers/scsi/scsi_devinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/scsi_devinfo.c +1
-1@@ -213,7 +213,7 @@ static struct { {"Medion", "Flash XL MMC/SD", "2.6D", BLIST_FORCELUN}, {"MegaRAID", "LD", NULL, BLIST_FORCELUN}, {"MICROP", "4110", NULL, BLIST_NOTQ}, - {"MSFT", "Virtual HD", NULL, BLIST_NO_RSOC}, + {"MSFT", "Virtual HD", NULL, BLIST_MAX_1024 | BLIST_NO_RSOC}, {"MYLEX", "DACARMRB", "*", BLIST_REPORTLUN2}, {"nCipher", "Fastness Crypto", NULL, BLIST_FORCELUN}, {"NAKAMICH", "MJ-4.8S", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Quoted 16 lines
Subject: Re: [PATCH] scsi: devinfo: Add Microsoft iSCSI target to 1024 sector blacklist
Long, KY: Please confirm.
Quoted 10 lines
The Windows Server 2016 iSCSI target doesn't work with the Linux kernel initiator since the kernel started sending larger requests by default, nor does it implement the block limits VPD page. Apply the sector limit workaround for these targets.
Signed-off-by Ross Lagerwall <[email protected]>--- drivers/scsi/scsi_devinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 10 lines
drivers/scsi/scsi_devinfo.c static struct { · line 216
Quoted 10 lines
drivers/scsi/scsi_devinfo.c +1
-1@@ -213,7 +213,7 @@ static struct { {"Medion", "Flash XL MMC/SD", "2.6D", BLIST_FORCELUN}, {"MegaRAID", "LD", NULL, BLIST_FORCELUN}, {"MICROP", "4110", NULL, BLIST_NOTQ}, - {"MSFT", "Virtual HD", NULL, BLIST_NO_RSOC}, + {"MSFT", "Virtual HD", NULL, BLIST_MAX_1024 | BLIST_NO_RSOC},
Ross,
What about storage_channel_properties.max_transfer_bytes returned from VSTOR_OPERATION_QUERY_PROPERTIES (in storvsc_channel_init())
Does it return correctly the maximum transfer size for iSCSI?
Long
Quoted 7 lines
drivers/scsi/scsi_devinfo.c static struct {
Quoted 3 lines
drivers/scsi/scsi_devinfo.c +0
-0{"MYLEX", "DACARMRB", "*", BLIST_REPORTLUN2}, {"nCipher", "Fastness Crypto", NULL, BLIST_FORCELUN}, {"NAKAMICH", "MJ-4.8S", NULL, BLIST_FORCELUN |
BLIST_SINGLELUN},--
Martin K. Petersen Oracle Linux Engineering
Quoted 29 lines · Long Li
Quoted 16 lines
Subject: Re: [PATCH] scsi: devinfo: Add Microsoft iSCSI target to 1024 sector blacklist
Long, KY: Please confirm.
Quoted 10 lines
The Windows Server 2016 iSCSI target doesn't work with the Linux kernel initiator since the kernel started sending larger requests by default, nor does it implement the block limits VPD page. Apply the sector limit workaround for these targets.
Signed-off-by Ross Lagerwall <[email protected]>--- drivers/scsi/scsi_devinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 10 lines
drivers/scsi/scsi_devinfo.c static struct { · line 216
Quoted 10 lines
drivers/scsi/scsi_devinfo.c +1
-1@@ -213,7 +213,7 @@ static struct { {"Medion", "Flash XL MMC/SD", "2.6D", BLIST_FORCELUN}, {"MegaRAID", "LD", NULL, BLIST_FORCELUN}, {"MICROP", "4110", NULL, BLIST_NOTQ}, - {"MSFT", "Virtual HD", NULL, BLIST_NO_RSOC}, + {"MSFT", "Virtual HD", NULL, BLIST_MAX_1024 | BLIST_NO_RSOC},Ross,
Quoted 4 lines
What about storage_channel_properties.max_transfer_bytes returned from
VSTOR_OPERATION_QUERY_PROPERTIES(instorvsc_channel_init())Does it return correctly the maximum transfer size for iSCSI?
I presume you're referring to the Hyper-V virtual storage driver? This has nothing to do with that module -- I don't even have it compiled in. It's just simply the Linux kernel initiator connecting over plain software iSCSI to a Windows Server 2016 iSCSI target.
This is easy enough to reproduce. Just set up a Windows Server 2016 target and try and use it from Linux. You get I/O errors as soon as you try and format the disk.
Cheers,
Signature · 1 line
Ross Lagerwall
+Matt
Quoted 47 lines
-----Original Message-----
From: Ross Lagerwall <[email protected]>
Sent: Thursday, April 5, 2018 9:58 AM
To: Long Li <[email protected]>; Martin K. Petersen <[email protected]>; KY Srinivasan <[email protected]>
Cc: James E.J. Bottomley <[email protected]>; linux- [email protected]; [email protected]
Subject: Re: [PATCH] scsi: devinfo: Add Microsoft iSCSI target to 1024 sector blacklistQuoted 1 line · Long Li
Quoted 1 line
Subject: Re: [PATCH] scsi: devinfo: Add Microsoft iSCSI target to 1024
sector
Quoted 28 lines
Quoted 15 lines
blacklist
Long, KY: Please confirm.
Quoted 10 lines
The Windows Server 2016 iSCSI target doesn't work with the Linux kernel initiator since the kernel started sending larger requests by default, nor does it implement the block limits VPD page. Apply the sector limit workaround for these targets.
Signed-off-by Ross Lagerwall <[email protected]>--- drivers/scsi/scsi_devinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 10 lines
drivers/scsi/scsi_devinfo.c static struct { · line 216
Quoted 10 lines
drivers/scsi/scsi_devinfo.c +1
-1@@ -213,7 +213,7 @@ static struct { {"Medion", "Flash XL MMC/SD", "2.6D", BLIST_FORCELUN}, {"MegaRAID", "LD", NULL, BLIST_FORCELUN}, {"MICROP", "4110", NULL, BLIST_NOTQ}, - {"MSFT", "Virtual HD", NULL, BLIST_NO_RSOC}, + {"MSFT", "Virtual HD", NULL, BLIST_MAX_1024 | BLIST_NO_RSOC},Ross,
Quoted 1 line
What about storage_channel_properties.max_transfer_bytes returned
from
VSTOR_OPERATION_QUERY_PROPERTIES(instorvsc_channel_init())Quoted 3 lines
Does it return correctly the maximum transfer size for iSCSI?
Quoted 8 lines
I presume you're referring to the Hyper-V virtual storage driver? This has nothing to do with that module -- I don't even have it compiled in. It's just simply the Linux kernel initiator connecting over plain software iSCSI to a Windows Server 2016 iSCSI target.
This is easy enough to reproduce. Just set up a Windows Server 2016 target and try and use it from Linux. You get I/O errors as soon as you try and format the disk.
Adding Matt for visibility. Ross, we are fine with blacklisting for now.
K. Y
Quoted 4 lines
Cheers,
--
Ross Lagerwall
Martin K. Petersen
AppliedRoss,
Quoted 4 lines
The Windows Server 2016 iSCSI target doesn't work with the Linux kernel initiator since the kernel started sending larger requests by default, nor does it implement the block limits VPD page. Apply the sector limit workaround for these targets.
Applied to 4.17/scsi-fixes, thank you!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering