From: "Adam Radford" <aradford@amcc.com>
To: akpm@osdl.org, james.bottomley@steeleye.com
Cc: linux-scsi@vger.kernel.org
Subject: [PATCH] 3ware 9000 driver update for 2.6.7-rc2-mm3
Date: Thu, 3 Jun 2004 17:29:09 -0700 [thread overview]
Message-ID: <HYRDDJ03.YDP@hadar.amcc.com> (raw)
Andrew, James,
This small patch fixes the broken schedule_timeout() usage in the 3w-9xxx driver,
and replaces the calls with msleep().
--
Adam Radford
Staff Software Engineer
AMCC
diff -Naur linux-2.6.7-rc2-mm2/drivers/scsi/3w-9xxx.c linux-2.6.7-rc2-mm3/drivers/scsi/3w-9xxx.c
--- linux-2.6.7-rc2-mm2/drivers/scsi/3w-9xxx.c 2004-06-03 15:22:18.000000000 -0700
+++ linux-2.6.7-rc2-mm3/drivers/scsi/3w-9xxx.c 2004-06-03 17:22:06.000000000 -0700
@@ -50,6 +50,7 @@
History
-------
2.26.02.000 - Driver cleanup for kernel submission.
+ 2.26.02.001 - Replace schedule_timeout() calls with msleep().
*/
#include <linux/module.h>
@@ -72,7 +73,7 @@
#include "3w-9xxx.h"
/* Globals */
-static const char *twa_driver_version="2.26.02.000";
+static const char *twa_driver_version="2.26.02.001";
static TW_Device_Extension *twa_device_extension_list[TW_MAX_SLOT];
static unsigned int twa_device_extension_count;
static int twa_major = -1;
@@ -1445,7 +1446,7 @@
if (time_after(jiffies, before + HZ * seconds))
goto out;
- schedule_timeout(1);
+ msleep(50);
}
retval = 0;
out:
@@ -1473,7 +1474,7 @@
if (time_after(jiffies, before + HZ * seconds))
goto out;
- schedule_timeout(1);
+ msleep(50);
}
retval = 0;
out:
reply other threads:[~2004-06-04 0:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=HYRDDJ03.YDP@hadar.amcc.com \
--to=aradford@amcc.com \
--cc=akpm@osdl.org \
--cc=james.bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.