/usr/src/kernel-patches/lustre/patches/netpoll_xmit_lock-2.6-suse.patch is in linux-patch-lustre 1.8.5+dfsg-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | --- linux-2.6.orig/net/core/netpoll.c 2007-12-18 21:58:41.000000000 +0800
+++ linux-2.6/net/core/netpoll.c 2007-12-18 21:59:01.000000000 +0800
@@ -160,6 +160,11 @@ repeat:
return;
}
+ if(np->dev->xmit_lock_owner == smp_processor_id()) {
+ __kfree_skb(skb);
+ return;
+ }
+
spin_lock(&np->dev->xmit_lock);
np->dev->xmit_lock_owner = smp_processor_id();
|