From d6594193265f10fc5df50601c25efb7cb6e48ba6 Mon Sep 17 00:00:00 2001 From: Krishna Kumar Date: Wed, 5 Nov 2003 21:18:43 -0800 Subject: [PATCH] [NET]: Do not run netdev todo work from linkwatch code. --- net/core/link_watch.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net/core/link_watch.c b/net/core/link_watch.c index f70eed5889097..ae661b3a31d26 100644 --- a/net/core/link_watch.c +++ b/net/core/link_watch.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -91,9 +92,11 @@ static void linkwatch_event(void *dummy) linkwatch_nextevent = jiffies + HZ; clear_bit(LW_RUNNING, &linkwatch_flags); - rtnl_lock(); + rtnl_shlock(); + rtnl_exlock(); linkwatch_run_queue(); - rtnl_unlock(); + rtnl_exunlock(); + rtnl_shunlock(); } -- 2.53.0