Subject: + relay-fix-timer-madness-v2.patch added to -mm tree To: jovi.zhangwei@xxxxxxxxxx,axboe@xxxxxxxxx,edumazet@xxxxxxxxxx,mingo@xxxxxxx,rostedt@xxxxxxxxxxx,viro@xxxxxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx 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)" <jovi.zhangwei@xxxxxxxxxx> Subject: relay-fix-timer-madness-v2 Changed from v1: mod timer interval changed from jiffies+1 to HZ/10, as Ingo suggested. Signed-off-by: "zhangwei(Jovi)" <jovi.zhangwei@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Steven Rostedt <rostedt@xxxxxxxxxxx> Cc: Jens Axboe <axboe@xxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Eric Dumazet <edumazet@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/relay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN kernel/relay.c~relay-fix-timer-madness-v2 kernel/relay.c --- a/kernel/relay.c~relay-fix-timer-madness-v2 +++ a/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 jovi.zhangwei@xxxxxxxxxx are linux-next.patch relay-fix-timer-madness.patch relay-fix-timer-madness-v2.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html