]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: move lockdep assertion into DVM
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Mar 2012 21:30:41 +0000 (13:30 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Mar 2012 18:51:49 +0000 (13:51 -0500)
commitf747c11f5e975ff727cdf3dbfe36a4c5d4281316
tree99bf63efa8fb8d8ef9943c64595ad55f7bfb1b3a
parent0d4823c3e852ef93aeb5491a793c0995645db795
iwlwifi: move lockdep assertion into DVM

The fact that the mutex must be held is an
implementation detail of DVM, but something
has to ensure that no two synchronous cmds
are submitted concurrently. Move the lockdep
assertion into the DVM-specific code, but
also make the transport abort if there are
two concurrently commands.

The assertion is much more useful though as
the transport check can only catch it when
it actually happens, while the assertion
makes sure it can't possibly happen.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c