Skip to contentSkip to conversation

mac802154: fix NOHZ local_softirq_pending 08 warning

PATCH In review Alexander Aring 2 participants 2 messages Jan 2, 2013 – Jan 4, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac802154: fix NOHZ local_softirq_pending 08 warning

When using nanosleep() in an userspace application we get a ratelimit warning

NOHZ: local_softirq_pending 08

for 10 times.

This patch replaces netif_rx() with netif_rx_ni() which has to be used from process/softirq context.
The process/softirq context will be called from fakelb driver.

See linux-kernel commit 481a819 for similar fix.

---
 net/mac802154/wpan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac802154/wpan.c +1 -1
index 1191039..199b922 100644
@@ -389,7 +389,7 @@ void mac802154_wpan_setup(struct net_device *dev)
 
 static int mac802154_process_data(struct net_device *dev, struct sk_buff *skb)
 {
-	return netif_rx(skb);
+	return netif_rx_ni(skb);
 }
 
 static int
Signature · 1 line
1.8.0.2
maintainer
#1 lore raw

From: Alexander Aring <[email protected]>
Date: Wed, 2 Jan 2013 12:01:10 +0100

Quoted 7 lines

When using nanosleep() in an userspace application we get a ratelimit warning

NOHZ: local_softirq_pending 08

for 10 times.

Quoted 7 lines

This patch replaces netif_rx() with netif_rx_ni() which has to be used from process/softirq context.
The process/softirq context will be called from fakelb driver.

See linux-kernel commit 481a819 for similar fix.

Applied and queued up for -stable, thanks.