mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.5.69] mod_timer fix for floppy98.c
@ 2003-05-07  4:20 Vinay K Nallamothu
  0 siblings, 0 replies; only message in thread
From: Vinay K Nallamothu @ 2003-05-07  4:20 UTC (permalink / raw)
  To: LKML

In my previous patch against 2.5.68, missed out killing del_timer.
Thanks to Christian Heller for pointing it out.

vinay

floppy98.c: Trivial {del,add}_timer to mod_timer conversions.

--- linux-2.5.69/drivers/block/floppy98.c	2003-05-05 09:56:04.000000000 +0530
+++ linux-2.5.69-nvk/drivers/block/floppy98.c	2003-05-07 09:43:22.000000000 +0530
@@ -702,15 +702,16 @@
 
 static void reschedule_timeout(int drive, const char *message, int marg)
 {
+	long delay;
+
 	if (drive == current_reqD)
 		drive = current_drive;
-	del_timer(&fd_timeout);
 	if (drive < 0 || drive > N_DRIVE) {
-		fd_timeout.expires = jiffies + 20UL*HZ;
+		delay = jiffies + 20UL*HZ;
 		drive=0;
 	} else
-		fd_timeout.expires = jiffies + UDP->timeout;
-	add_timer(&fd_timeout);
+		delay = jiffies + UDP->timeout;
+	mod_timer(&fd_timeout, delay);
 	if (UDP->flags & FD_DEBUG){
 		DPRINT("reschedule timeout ");
 		printk(message, marg);




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-07  4:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-07  4:20 [PATCH 2.5.69] mod_timer fix for floppy98.c Vinay K Nallamothu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®