|
@@ -221,6 +221,11 @@ static int storvsc_ringbuffer_size = (20 * PAGE_SIZE);
|
|
|
module_param(storvsc_ringbuffer_size, int, S_IRUGO);
|
|
|
MODULE_PARM_DESC(storvsc_ringbuffer_size, "Ring buffer size (bytes)");
|
|
|
|
|
|
+/*
|
|
|
+ * Timeout in seconds for all devices managed by this driver.
|
|
|
+ */
|
|
|
+static int storvsc_timeout = 180;
|
|
|
+
|
|
|
#define STORVSC_MAX_IO_REQUESTS 128
|
|
|
|
|
|
/*
|
|
@@ -1204,6 +1209,8 @@ static int storvsc_device_configure(struct scsi_device *sdevice)
|
|
|
|
|
|
blk_queue_bounce_limit(sdevice->request_queue, BLK_BOUNCE_ANY);
|
|
|
|
|
|
+ blk_queue_rq_timeout(sdevice->request_queue, (storvsc_timeout * HZ));
|
|
|
+
|
|
|
sdevice->no_write_same = 1;
|
|
|
|
|
|
return 0;
|