* [KJ] [PATCH] scsi/qla_os: replace schedule_timeout() with ssleep()
@ 2004-10-22 23:52 Nishanth Aravamudan
2004-10-24 14:10 ` maximilian attems
0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Aravamudan @ 2004-10-22 23:52 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]
Any comments would be, as always, appreciated.
-Nish
Description: Use ssleep() instead of schedule_timeout() to guarantee the
task delays as expected. Change the values of the constants being used
appropriately. I left the arithmetic there as it was before, even though
it could be easily simplified away.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
--- 2.6.9-bk7-vanilla/drivers/scsi/qla2xxx/qla_os.c 2004-10-22 10:41:10.000000000 -0700
+++ 2.6.9-bk7/drivers/scsi/qla2xxx/qla_os.c 2004-10-22 15:27:07.000000000 -0700
@@ -888,8 +888,8 @@ qla2x00_queuecommand(struct scsi_cmnd *c
static int
qla2x00_eh_wait_on_command(scsi_qla_host_t *ha, struct scsi_cmnd *cmd)
{
-#define ABORT_POLLING_PERIOD HZ
-#define ABORT_WAIT_TIME ((10 * HZ) / (ABORT_POLLING_PERIOD))
+#define ABORT_POLLING_PERIOD 1000
+#define ABORT_WAIT_TIME ((10 * 1000) / ABORT_POLLING_PERIOD)
int found = 0;
int done = 0;
@@ -926,8 +926,7 @@ qla2x00_eh_wait_on_command(scsi_qla_host
spin_unlock_irq(ha->host->host_lock);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(ABORT_POLLING_PERIOD);
+ ssleep(ABORT_POLLING_PERIOD / 1000);
spin_lock_irq(ha->host->host_lock);
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [KJ] [PATCH] scsi/qla_os: replace schedule_timeout() with ssleep()
2004-10-22 23:52 [KJ] [PATCH] scsi/qla_os: replace schedule_timeout() with ssleep() Nishanth Aravamudan
@ 2004-10-24 14:10 ` maximilian attems
0 siblings, 0 replies; 2+ messages in thread
From: maximilian attems @ 2004-10-24 14:10 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
On Fri, 22 Oct 2004, Nishanth Aravamudan wrote:
> Any comments would be, as always, appreciated.
>
> -Nish
>
> Description: Use ssleep() instead of schedule_timeout() to guarantee the
> task delays as expected. Change the values of the constants being used
> appropriately. I left the arithmetic there as it was before, even though
> it could be easily simplified away.
>
> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
applied to kjt,
to get further testing and to be shure it gets upstream.
thanks
--
maks
kernel janitor http://janitor.kernelnewbies.org/
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-24 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-22 23:52 [KJ] [PATCH] scsi/qla_os: replace schedule_timeout() with ssleep() Nishanth Aravamudan
2004-10-24 14:10 ` maximilian attems
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.