From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Aravamudan Date: Tue, 27 Jul 2004 22:39:24 +0000 Subject: [Kernel-janitors] [PATCH] scsi/ipr: replace schedule_timeout() with Message-Id: <20040727223924.GA4537@us.ibm.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============44218089704986707==" List-Id: To: kernel-janitors@vger.kernel.org --===============44218089704986707== Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. Signed-off-by: Nishanth Aravamudan --- linux-vanilla/drivers/scsi/ipr.c 2004-06-16 05:20:27.000000000 +0000 +++ linux-dev/drivers/scsi/ipr.c 2004-07-13 18:06:11.000000000 +0000 @@ -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; --===============44218089704986707== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors --===============44218089704986707==--