slip: fix NOHZ local_softirq_pending 08 warning
authorMatvejchikov Ilya <matvejchikov@gmail.com>
Fri, 5 Aug 2011 09:23:51 +0000 (09:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2011 05:14:45 +0000 (22:14 -0700)
When using nanosleep() in an userspace application we get a ratelimit warning:

NOHZ: local_softirq_pending 08

According to 481a8199142c050b72bff8a1956a49fd0a75bbe0 the problem is caused by
netif_rx() function. This patch replaces netif_rx() with netif_rx_ni() which
has to be used from process/softirq context.

Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/slip.c

index f11b3f3df24fa813a2a1b967be619057c12c0f0f..4c617534f9377a40da2755b77c54dbc7da2cf978 100644 (file)
@@ -367,7 +367,7 @@ static void sl_bump(struct slip *sl)
        memcpy(skb_put(skb, count), sl->rbuff, count);
        skb_reset_mac_header(skb);
        skb->protocol = htons(ETH_P_IP);
-       netif_rx(skb);
+       netif_rx_ni(skb);
        dev->stats.rx_packets++;
 }