Commit d6594193 authored by Krishna Kumar's avatar Krishna Kumar Committed by Linus Torvalds

[NET]: Do not run netdev todo work from linkwatch code.

parent c1c555ef
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/if.h> #include <linux/if.h>
#include <net/sock.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
...@@ -91,9 +92,11 @@ static void linkwatch_event(void *dummy) ...@@ -91,9 +92,11 @@ static void linkwatch_event(void *dummy)
linkwatch_nextevent = jiffies + HZ; linkwatch_nextevent = jiffies + HZ;
clear_bit(LW_RUNNING, &linkwatch_flags); clear_bit(LW_RUNNING, &linkwatch_flags);
rtnl_lock(); rtnl_shlock();
rtnl_exlock();
linkwatch_run_queue(); linkwatch_run_queue();
rtnl_unlock(); rtnl_exunlock();
rtnl_shunlock();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment