| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 6/6] netpoll: handle xmit_lock recursion similarly |
| From: | Matt Mackall <mpm@xxxxxxxxxxx> |
| Date: | Thu, 17 Feb 2005 23:25:19 -0600 |
| Cc: | netdev@xxxxxxxxxxx, Jeff Moyer <jmoyer@xxxxxxxxxx> |
| In-reply-to: | <6.378217222@xxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Handle possible recursion on xmit_lock while we're at it.
Signed-off-by: Matt Mackall <mpm@xxxxxxxxxxx>
Index: rc4/net/core/netpoll.c
===================================================================
--- rc4.orig/net/core/netpoll.c 2005-02-17 22:40:05.000000000 -0600
+++ rc4/net/core/netpoll.c 2005-02-17 22:40:07.000000000 -0600
@@ -247,8 +247,9 @@
return;
}
- /* avoid ->poll recursion */
- if(np->poll_owner == __smp_processor_id()) {
+ /* avoid recursion */
+ if(np->poll_owner == __smp_processor_id() ||
+ np->dev->xmit_lock_owner == __smp_processor_id()) {
if (np->drop)
np->drop(skb);
else
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/6] netpoll: filter inlines, Matt Mackall |
|---|---|
| Next by Date: | [PATCH 4/6] netpoll: fix ->poll() locking, Matt Mackall |
| Previous by Thread: | [PATCH 5/6] netpoll: add optional dropping and queueing support, Matt Mackall |
| Next by Thread: | [IPV4] Fix ip_rt_gc_min_interval_ms procfs/sysctl, YOSHIFUJI Hideaki / 吉藤英明 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |