mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-26 20:44:32 +08:00
07346f81e8
As discussed earlier, we can unify locking in struct sta_info and use just a single spinlock protecting all members of the structure that need protection. Many don't, but one of the especially bad ones is the 'flags' member that can currently be clobbered when RX and TX is being processed on different CPUs at the same time. Because having four spinlocks for different, mostly exclusive parts of a single structure is overkill, this patch also kills the ampdu and mesh plink spinlocks and uses just a single one for everything. Because none of the spinlocks are nested, this is safe. It remains to be seen whether or not we should make the sta flags use atomic bit operations instead, for now though this is a safe thing and using atomic operations instead will be very simple using the new static inline functions this patch introduces for accessing sta->flags. Since spin_lock_bh() is used with this lock, there shouldn't be any contention even if aggregation is enabled at around the same time as both requires frame transmission/reception which is in a bh context. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: Tomas Winkler <tomasw@gmail.com> Cc: Ron Rindjunsky <ron.rindjunsky@intel.com> Cc: Luis Carlos Cobo <luisca@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
---|---|---|
.. | ||
iwl3945-base.c | ||
iwl4965-base.c | ||
iwl-3945-commands.h | ||
iwl-3945-core.h | ||
iwl-3945-debug.h | ||
iwl-3945-hw.h | ||
iwl-3945-io.h | ||
iwl-3945-led.c | ||
iwl-3945-led.h | ||
iwl-3945-rs.c | ||
iwl-3945-rs.h | ||
iwl-3945.c | ||
iwl-3945.h | ||
iwl-4965-hw.h | ||
iwl-4965-rs.c | ||
iwl-4965-rs.h | ||
iwl-4965.c | ||
iwl-5000-hw.h | ||
iwl-5000.c | ||
iwl-calib.c | ||
iwl-calib.h | ||
iwl-commands.h | ||
iwl-core.c | ||
iwl-core.h | ||
iwl-csr.h | ||
iwl-debug.h | ||
iwl-debugfs.c | ||
iwl-dev.h | ||
iwl-eeprom.c | ||
iwl-eeprom.h | ||
iwl-fh.h | ||
iwl-hcmd.c | ||
iwl-helpers.h | ||
iwl-io.h | ||
iwl-led.c | ||
iwl-led.h | ||
iwl-power.c | ||
iwl-power.h | ||
iwl-prph.h | ||
iwl-rfkill.c | ||
iwl-rfkill.h | ||
iwl-spectrum.h | ||
iwl-sta.c | ||
iwl-sta.h | ||
Kconfig | ||
Makefile |