]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Fix locking in shaper driver.
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Jun 2005 23:36:00 +0000 (16:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jun 2005 23:36:00 +0000 (16:36 -0700)
commitf04651ed76d4fe3ebba526b3cd7e1f9c97fcb316
treeaf2a1822d63cf447dd6e9b58808ea22341c85955
parente69c864abcb3793aa4a6bf04fe4080563f4dc02d
[NET]: Fix locking in shaper driver.

 o use a semaphore instead of an opencoded and racy lock
 o move locking out of shaper_kick and into the callers - most just
   released the lock before calling shaper_kick
 o remove in_interrupt() tests.  from ->close we can always block, from
   ->hard_start_xmit and timer context never

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/shaper.c
include/linux/if_shaper.h