- link_watch-eliminate-potential-delay-on-wrap-around.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     link_watch: Eliminate potential delay on wrap-around
has been removed from the -mm tree.  Its filename was
     link_watch-eliminate-potential-delay-on-wrap-around.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: link_watch: Eliminate potential delay on wrap-around
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

When the jiffies wrap around or when the system boots up for the first
time, down events can be delayed indefinitely since we no longer update
linkwatch_nextevent when only urgent events are processed.

This patch fixes this by setting linkwatch_nextevent when a wrap-around
occurs.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 net/core/link_watch.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -puN net/core/link_watch.c~link_watch-eliminate-potential-delay-on-wrap-around net/core/link_watch.c
--- a/net/core/link_watch.c~link_watch-eliminate-potential-delay-on-wrap-around
+++ a/net/core/link_watch.c
@@ -110,8 +110,10 @@ static void linkwatch_schedule_work(int 
 	}
 
 	/* If we wrap around we'll delay it by at most HZ. */
-	if (delay > HZ)
+	if (delay > HZ) {
+		linkwatch_nextevent = jiffies;
 		delay = 0;
+	}
 
 	/*
 	 * This is true if we've scheduled it immeditately or if we don't
_

Patches currently in -mm which might be from herbert@xxxxxxxxxxxxxxxxxxx are

origin.patch
git-net.patch
git-wireless.patch
use-menuconfig-objects-crypto.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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux