[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AC3A0F1.3060306@hartkopp.net>
Date: Wed, 30 Sep 2009 20:18:25 +0200
From: Oliver Hartkopp <oliver@...tkopp.net>
To: David Miller <davem@...emloft.net>
CC: Johannes Berg <johannes@...solutions.net>,
Michael Buesch <mb@...sch.de>, Kalle Valo <kalle.valo@....fi>,
"John W. Linville" <linville@...driver.com>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Subject: [PATCH] net: fix NOHZ: local_softirq_pending 08
Socket buffers that are generated and received inside softirqs or from process
context must not use netif_rx() that's intended to be used from irq context only.
This patch introduces a new helper function netif_rx_ti(skb) that tests for
in_interrupt() before invoking netif_rx() or netif_rx_ni().
It fixes the ratelimited kernel warning
NOHZ: local_softirq_pending 08
in the mac80211 and can subsystems.
Signed-off-by: Oliver Hartkopp <oliver@...tkopp.net>
---
View attachment "net-NOHZ-local_softirq_pending-08.patch" of type "text/x-patch" (4032 bytes)
Powered by blists - more mailing lists