]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: Fix a kernel panic when waking tx queue
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 25 May 2009 20:57:21 +0000 (20:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 May 2009 05:04:42 +0000 (22:04 -0700)
commit2629348bf72cf2e21c80bc33bc72eed17a61c9f8
treee037c9c1796086a5cd223f170a8a8d295f2a4e99
parent07b1c7ab491b183cd2557b8d8f09381723f8ec6f
mlx4_en: Fix a kernel panic when waking tx queue

When the transmit queue gets full we enable interrupts for TX completions
There was a race that we handled the TX queue both from the interrupt context
and from the transmit function. Using "spin_trylock_irq()" ensures this
doesn't happen.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_tx.c