|
@@ -1156,6 +1156,8 @@ static int storvsc_device_configure(struct scsi_device *sdevice)
|
|
|
|
|
|
blk_queue_bounce_limit(sdevice->request_queue, BLK_BOUNCE_ANY);
|
|
|
|
|
|
+ sdevice->no_write_same = 1;
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -1238,6 +1240,8 @@ static bool storvsc_scsi_cmd_ok(struct scsi_cmnd *scmnd)
|
|
|
u8 scsi_op = scmnd->cmnd[0];
|
|
|
|
|
|
switch (scsi_op) {
|
|
|
+ /* the host does not handle WRITE_SAME, log accident usage */
|
|
|
+ case WRITE_SAME:
|
|
|
/*
|
|
|
* smartd sends this command and the host does not handle
|
|
|
* this. So, don't send it.
|