Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Drivers: add blist flags

Add blist flags to permit the reading of the VPD pages even when
the target may claim SPC-2 compliance. MSFT targets currently
claim SPC-2 compliance while they implement post SPC-2 features.
With this patch we can correctly handle WRITE_SAME_16 issues.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>

authored by

K. Y. Srinivasan and committed by
Christoph Hellwig
f3cfabce ea2aab24

+10
+10
drivers/scsi/storvsc_drv.c
··· 327 327 */ 328 328 static int storvsc_timeout = 180; 329 329 330 + static int msft_blist_flags = BLIST_TRY_VPD_PAGES; 331 + 330 332 #define STORVSC_MAX_IO_REQUESTS 200 331 333 332 334 static void storvsc_on_channel_callback(void *context); ··· 1450 1448 blk_queue_rq_timeout(sdevice->request_queue, (storvsc_timeout * HZ)); 1451 1449 1452 1450 sdevice->no_write_same = 1; 1451 + 1452 + /* 1453 + * Add blist flags to permit the reading of the VPD pages even when 1454 + * the target may claim SPC-2 compliance. MSFT targets currently 1455 + * claim SPC-2 compliance while they implement post SPC-2 features. 1456 + * With this patch we can correctly handle WRITE_SAME_16 issues. 1457 + */ 1458 + sdevice->sdev_bflags |= msft_blist_flags; 1453 1459 1454 1460 return 0; 1455 1461 }