* [Kernel-janitors] [PATCH] net/ewrk3: replace schedule_timeout()
@ 2004-07-27 0:02 Nishanth Aravamudan
2004-07-27 2:50 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Aravamudan @ 2004-07-27 0:02 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 642 bytes --]
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Replace schedule_timeout() with msleep() to guarantee the
task delays for the desired time.
--- linux-vanilla/drivers/net/ewrk3.c 2004-06-16 05:20:04.000000000 +0000
+++ linux-dev/drivers/net/ewrk3.c 2004-07-03 01:21:15.000000000 +0000
@@ -1679,8 +1679,7 @@ static int ewrk3_ethtool_ioctl(struct ne
/* Wait a little while */
spin_unlock_irqrestore(&lp->hw_lock, flags);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ>>2);
+ msleep(250);
spin_lock_irqsave(&lp->hw_lock, flags);
/* Exit if we got a signal */
[-- 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: [Kernel-janitors] [PATCH] net/ewrk3: replace schedule_timeout()
2004-07-27 0:02 [Kernel-janitors] [PATCH] net/ewrk3: replace schedule_timeout() Nishanth Aravamudan
@ 2004-07-27 2:50 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2004-07-27 2:50 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
On Mon, Jul 26, 2004 at 05:02:21PM -0700, Nishanth Aravamudan wrote:
> I would appreciate any comments from the janitors list.
>
> Applys-to: 2.6.7
>
> Description: Replace schedule_timeout() with msleep() to guarantee the
> task delays for the desired time.
Seems like it should produce identical results to me.
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
[-- 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-07-27 2:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-27 0:02 [Kernel-janitors] [PATCH] net/ewrk3: replace schedule_timeout() Nishanth Aravamudan
2004-07-27 2:50 ` Matthew Wilcox
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.