[NET]: Do not grab device reference when scheduling a NAPI poll.
[firefly-linux-kernel-4.4.55.git] / include / linux / netdevice.h
index 1e6af4f174b6cd5affaf7baf75597490e6915fce..e393995d283a55ee7e98188987b9f32658c5c144 100644 (file)
@@ -1277,7 +1277,6 @@ static inline int netif_rx_schedule_prep(struct net_device *dev,
 static inline void __netif_rx_schedule(struct net_device *dev,
                                       struct napi_struct *napi)
 {
-       dev_hold(dev);
        __napi_schedule(napi);
 }
 
@@ -1308,7 +1307,6 @@ static inline void __netif_rx_complete(struct net_device *dev,
                                       struct napi_struct *napi)
 {
        __napi_complete(napi);
-       dev_put(dev);
 }
 
 /* Remove interface from poll list: it must be in the poll list