public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 1/3] scsi/qla1280: replace schedule_timeout() with ssleep()
@ 2005-06-20 21:55 domen
  2005-06-30  9:47 ` Jes Sorensen
  0 siblings, 1 reply; 2+ messages in thread
From: domen @ 2005-06-20 21:55 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, Nishanth Aravamudan, domen

[-- Attachment #1: ssleep-drivers_scsi_qla1280.patch --]
[-- Type: text/plain, Size: 776 bytes --]

From: Nishanth Aravamudan <nacc@us.ibm.com>



Use ssleep() instead of schedule_timeout to guarantee the task
delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
 qla1280.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: quilt/drivers/scsi/qla1280.c
===================================================================
--- quilt.orig/drivers/scsi/qla1280.c
+++ quilt/drivers/scsi/qla1280.c
@@ -2829,7 +2829,7 @@ qla1280_bus_reset(struct scsi_qla_host *
 		ha->bus_settings[bus].failed_reset_count++;
 	} else {
 		spin_unlock_irq(HOST_LOCK);
-		schedule_timeout(reset_delay * HZ);
+		ssleep(reset_delay);
 		spin_lock_irq(HOST_LOCK);
 
 		ha->bus_settings[bus].scsi_bus_dead = 0;

--

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch 1/3] scsi/qla1280: replace schedule_timeout() with ssleep()
  2005-06-20 21:55 [patch 1/3] scsi/qla1280: replace schedule_timeout() with ssleep() domen
@ 2005-06-30  9:47 ` Jes Sorensen
  0 siblings, 0 replies; 2+ messages in thread
From: Jes Sorensen @ 2005-06-30  9:47 UTC (permalink / raw)
  To: domen; +Cc: James.Bottomley, linux-scsi, Nishanth Aravamudan

>>>>> "domen" == domen  <domen@coderock.org> writes:

domen> From: Nishanth Aravamudan <nacc@us.ibm.com> Use ssleep()
domen> instead of schedule_timeout to guarantee the task delays as
domen> expected.

I don't see any problem with this.

domen> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
domen> Signed-off-by: Domen Puncer <domen@coderock.org>

Signed-off-by: Jes Sorensen <jes@trained-monkey.org>

Cheers,
Jes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-30  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 21:55 [patch 1/3] scsi/qla1280: replace schedule_timeout() with ssleep() domen
2005-06-30  9:47 ` Jes Sorensen

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