From mboxrd@z Thu Jan 1 00:00:00 1970 From: walter harms Date: Sun, 10 Jun 2012 15:25:05 +0000 Subject: Re: [patch v2] iwlwifi: turn on a lockdep assertion Message-Id: <4FD4BC51.80407@bfs.de> List-Id: References: <20120610112521.GA20676@elgon.mountain> In-Reply-To: <20120610112521.GA20676@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: Johannes Berg , Wey-Yi Guy , Intel Linux Wireless , "John W. Linville" , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Am 10.06.2012 13:25, schrieb Dan Carpenter: > CMD_SYNC is zero so the if (cmd->flags & CMD_SYNC) is never true and we > never check the assertion. > > Signed-off-by: Dan Carpenter > --- > v2: enables the assertion even more than v1 (based on feedback from > Johannes Berg). The important part is CMD_SYNC -> CMD_ASYNC re, wh > > diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c > index e55ec6c..5c04895 100644 > --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c > +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c > @@ -1259,7 +1259,7 @@ int iwl_dvm_send_cmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) > * the mutex, this ensures we don't try to send two > * (or more) synchronous commands at a time. > */ > - if (cmd->flags & CMD_SYNC) > + if (!(cmd->flags & CMD_ASYNC)) > lockdep_assert_held(&priv->mutex); > > if (priv->ucode_owner = IWL_OWNERSHIP_TM && > -- > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > >