aboutsummaryrefslogtreecommitdiff
path: root/include/linux/if_shaper.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-07-05 15:03:46 -0700
committerDavid S. Miller <davem@davemloft.net>2005-07-05 15:03:46 -0700
commitbc971dee6ece1fd0d431948924becd9c50e7b778 (patch)
treee1f500970d3397adc14c4a286b81f8375f333af0 /include/linux/if_shaper.h
parent2f36895aa774cf4d1c3d68921e0209e796b66600 (diff)
[SHAPER]: Switch to spinlocks.
Dave, you were right and the sleeping locks in shaper were broken. Markus Kanet noticed this and also tested the patch below that switches locking to spinlocks. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_shaper.h')
-rw-r--r--include/linux/if_shaper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_shaper.h b/include/linux/if_shaper.h
index 004e6f09a6e2..68c896a36a34 100644
--- a/include/linux/if_shaper.h
+++ b/include/linux/if_shaper.h
@@ -23,7 +23,7 @@ struct shaper
__u32 shapeclock;
unsigned long recovery; /* Time we can next clock a packet out on
an empty queue */
- struct semaphore sem;
+ spinlock_t lock;
struct net_device_stats stats;
struct net_device *dev;
int (*hard_start_xmit) (struct sk_buff *skb,