netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac802154: fix NOHZ local_softirq_pending 08 warning
@ 2013-01-02 11:01 Alexander Aring
  2013-01-04 21:47 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2013-01-02 11:01 UTC (permalink / raw)
  To: alex.bluesman.smirnov
  Cc: dbaryshkov, linux-zigbee-devel, mkl, davem, netdev,
	Alexander Aring

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.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 net/mac802154/wpan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c
index 1191039..199b922 100644
--- a/net/mac802154/wpan.c
+++ b/net/mac802154/wpan.c
@@ -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
-- 
1.8.0.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mac802154: fix NOHZ local_softirq_pending 08 warning
  2013-01-02 11:01 [PATCH] mac802154: fix NOHZ local_softirq_pending 08 warning Alexander Aring
@ 2013-01-04 21:47 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-01-04 21:47 UTC (permalink / raw)
  To: alex.aring
  Cc: alex.bluesman.smirnov, dbaryshkov, linux-zigbee-devel, mkl,
	netdev, alex.aring

From: Alexander Aring <alex.aring@googlemail.com>
Date: Wed,  2 Jan 2013 12:01:10 +0100

> 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.
> 
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>

Applied and queued up for -stable, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-04 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-02 11:01 [PATCH] mac802154: fix NOHZ local_softirq_pending 08 warning Alexander Aring
2013-01-04 21:47 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).