Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH 6/7] stex: switch to block timeout
@ 2008-11-30 16:38 James Bottomley
  0 siblings, 0 replies; only message in thread
From: James Bottomley @ 2008-11-30 16:38 UTC (permalink / raw)
  To: linux-scsi; +Cc: Mike Anderson, Jens Axboe, Ed Lin

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

Cc: Ed Lin <ed.lin@promise.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

---

diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index fd3d4f5..a3a18ad 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -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;



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-30 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-30 16:38 [PATCH 6/7] stex: switch to block timeout James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox