]> git.karo-electronics.de Git - linux-beck.git/commit
iwmc3200wifi: protect rx_tickets and rx_packets[] lists
authorZhu Yi <yi.zhu@intel.com>
Thu, 25 Feb 2010 06:15:28 +0000 (14:15 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Mar 2010 22:09:38 +0000 (17:09 -0500)
commitc03c6aefdc2c1f5785a5b0d1a3f7e48eeaae3505
tree5f00ed890b35708e04da459cfdd37ab9a7f46c23
parent34dd5feb8b8b15654714731e1dbb34a6d37fb34e
iwmc3200wifi: protect rx_tickets and rx_packets[] lists

Protect rx_tickets and rx_packets[] lists with spinlocks to fix the
race condition for concurrent list operations. In iwmc3200wifi both
sdio_isr_worker and rx_worker workqueues can access the rx ticket
and packets lists at the same time under high rx load.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/debugfs.c
drivers/net/wireless/iwmc3200wifi/iwm.h
drivers/net/wireless/iwmc3200wifi/main.c
drivers/net/wireless/iwmc3200wifi/rx.c