diff options
author | Christoph Hellwig <hch@lst.de> | 2005-07-05 15:03:46 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-05 15:03:46 -0700 |
commit | bc971dee6ece1fd0d431948924becd9c50e7b778 (patch) | |
tree | e1f500970d3397adc14c4a286b81f8375f333af0 /include | |
parent | 2f36895aa774cf4d1c3d68921e0209e796b66600 (diff) | |
download | linux-stable-bc971dee6ece1fd0d431948924becd9c50e7b778.tar.gz linux-stable-bc971dee6ece1fd0d431948924becd9c50e7b778.tar.bz2 linux-stable-bc971dee6ece1fd0d431948924becd9c50e7b778.zip |
[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')
-rw-r--r-- | include/linux/if_shaper.h | 2 |
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, |