Skip to contentSkip to conversation

stex: switch to block timeout

PATCH In review James Bottomley 1 participant 1 message Nov 30, 2008 SCSI

lore
Share & tools
lore

James Bottomley

author maintainer
#0 lore raw

PATCH 6/7 stex: switch to block timeout

stex sets the timeout in its slave configure routine for all devices. This now needs to update the request queue timeout in block.

---

drivers/scsi/stex.c +1 -1
index fd3d4f5..a3a18ad 100644
@@ -477,7 +477,7 @@ stex_slave_config(struct scsi_device *sdev)
 {
 	sdev->use_10_for_rw = 1;
 	sdev->use_10_for_ms = 1;
-	sdev->timeout = 60 * HZ;
+	blk_queue_rq_timeout(sdev->request_queue, 60 * HZ);
 	sdev->tagged_supported = 1;
 
 	return 0;