Skip to contentSkip to conversation

+ relay-fix-timer-madness-v2.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jul 10, 2013 Relay

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + relay-fix-timer-madness-v2.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 10 Jul 2013 15:23:03 -0700

The patch titled
Subject: relay-fix-timer-madness-v2
has been added to the -mm tree. Its filename is
relay-fix-timer-madness-v2.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/relay-fix-timer-madness-v2.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/relay-fix-timer-madness-v2.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: "zhangwei(Jovi)" <[email protected]>
Subject: relay-fix-timer-madness-v2

Changed from v1:
mod timer interval changed from jiffies+1 to HZ/10, as Ingo suggested.

Cc Ingo Molnar <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Al Viro <[email protected]>
Cc Eric Dumazet <[email protected]>

---

 kernel/relay.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/relay.c renamed from kernel/relay.c~relay-fix-timer-madness-v2 +2 -2
diff -puN kernel/relay.c~relay-fix-timer-madness-v2 kernel/relay.c
@@ -342,7 +342,7 @@ static void wakeup_readers(unsigned long
 	/*
 	 * Stupid polling for now:
 	 */
-	mod_timer(&buf->timer, jiffies + 1);
+	mod_timer(&buf->timer, HZ / 10);
 }
 
 /**
@@ -360,7 +360,7 @@ static void __relay_reset(struct rchan_b
 		init_waitqueue_head(&buf->read_wait);
 		kref_init(&buf->kref);
 		setup_timer(&buf->timer, wakeup_readers, (unsigned long)buf);
-		mod_timer(&buf->timer, jiffies + 1);
+		mod_timer(&buf->timer, HZ / 10);
 	} else
 		del_timer_sync(&buf->timer);
 

_

Patches currently in -mm which might be from [email protected] are

linux-next.patch
relay-fix-timer-madness.patch
relay-fix-timer-madness-v2.patch