login
Header Space

 
 

Re: [Bugme-new] [Bug 10326] New: inconsistent lock state in net_rx_action

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jarkao2@...>
Cc: <rjw@...>, <a.p.zijlstra@...>, <akpm@...>, <netdev@...>, <bugme-daemon@...>, <marcus@...>, <shemminger@...>, <linux-kernel@...>, <mingo@...>
Date: Thursday, March 27, 2008 - 6:22 pm

From: Jarek Poplawski <jarkao2@gmail.com>
Date: Thu, 27 Mar 2008 23:22:48 +0100


Instead of going back and forth like this can someone post
just take it upon themselves to post such an obvious patch
already :-)

All of this "he'll do it, she'll do it" just wastes time.

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index a2f0032..fae6a7e 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -383,9 +383,11 @@ static inline void __napi_complete(struct napi_struct *n)
 
 static inline void napi_complete(struct napi_struct *n)
 {
-	local_irq_disable();
+	unsigned long flags;
+
+	local_irq_save(flags);
 	__napi_complete(n);
-	local_irq_enable();
+	local_irq_restore(flags);
 }
 
 /**
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Bugme-new] [Bug 10326] New: inconsistent lock state in ..., Rafael J. Wysocki, (Thu Mar 27, 5:56 pm)
Re: [Bugme-new] [Bug 10326] New: inconsistent lock state in ..., David Miller, (Thu Mar 27, 6:22 pm)
speck-geostationary