Skip to contentSkip to conversation

scsi/ipr: replace schedule_timeout()

PATCH Brian King 1 participant 1 message Jul 27, 2004 Kernel janitors

lore
Share & tools
lore

Brian King

author
#0 lore raw

Looks good. Thanks. James, please apply.

-Brian

Quoted 21 lines · Nishanth Aravamudan

I would appreciate any comments from the janitors list.

Applys-to: 2.6.7

Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.

drivers/scsi/ipr.c +1 -1
@@ -2007,7 +2007,7 @@ static ssize_t ipr_store_diagnostics(str
 		wait_event(ioa_cfg->reset_wait_q, !ioa_cfg->in_reset_reload);
 
 		/* Wait for a second for any errors to be logged */
-		schedule_timeout(HZ);
+		msleep(1000);
 	} else {
 		spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags);
 		return -EIO;
Signature · 3 lines
Brian King
eServer Storage I/O
IBM Linux Technology Center

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors