iwlwifi: pcie: mark command queue lock with separate lockdep class
authorJohannes Berg <johannes.berg@intel.com>
Thu, 22 Sep 2016 08:31:41 +0000 (10:31 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 19 Oct 2016 05:21:55 +0000 (08:21 +0300)
commitfaead41cc7213ccef5a58c1bf518ac24816fe8a6
tree1374d2c97c2e81fa115459fb7592ec1eb3e40867
parent1ea2643961b0d1b8d0e4a11af5aa69b0f92d0533
iwlwifi: pcie: mark command queue lock with separate lockdep class

Emmanuel reports that when CMD_WANT_ASYNC_CALLBACK is used by mvm,
the callback will be called with the command queue lock held, and
mvm will try to stop all (other) TX queues, which acquires their
locks - this caused a false lockdep recursive locking report.

Suppress this report by marking the command queue lock with a new,
separate, lock class so lockdep can tell the difference between
the two types of queues.

Fixes: 156f92f2b471 ("iwlwifi: block the queues when we send ADD_STA for uAPSD")
Reported-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx.c