Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp283278img; Wed, 20 Mar 2019 00:10:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdhnzYvHjVgi0DM0kN+lgMwQ5EJHQ79wgxfuPyRp7ZRYVi2IU2Gp94Z/pMsXkd/ZQrTpvj X-Received: by 2002:a62:4553:: with SMTP id s80mr6072001pfa.141.1553065812911; Wed, 20 Mar 2019 00:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553065812; cv=none; d=google.com; s=arc-20160816; b=scKiG43zCz56gUmd4JzRUgbU06RK1hGlYJhoGQYLTjgMuQd7l9a/G6QCwnv6rYVENG j3r/dTNEJe0pdBHV7TTjKDmRLtZ4RFmxI/MgRhrag0fkqwsLjdGRXcBHRQfTcjxu80oO fflxoAg+JeQbnhhhet7e9mZ7qcoefxJO7UoS6aKEK2AZMK0Iwln/0nESvwkLnfXysSzK lLCuc8Zu2xqKqOTAIC63RsVuHZNbso5d/VbqAldYJ4l8ubRvoVcAESTWMFNet81PA/5P 2y25u0xUGUb97L1K4OhFGSvv8ia3FYQWI/OODzqjJrcwhyhqKKVzGEczSaU2xzokvyGW AcPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pT/tFO87Fgg1H9sne6N3fiyT9w1xy0s9QxvBKnrOsNg=; b=g5rVCLlHKRCu/KHBRexNdd5cR3TiO+PotGOyowdWSrx/TQE4alsnE5NA4XEW3YHUzG PxtrW3RKF73MlpPDOFp+4+UMAUq1qdkPFCFuwlSAZzaT7M4PgUGDSHLVlYNvJ4b+l5jn PadFOdszebNRcNjw8W9n/7Z0fr4wEkB0TunUVJL75t/wNj6Yx4pd2SnUEuDaUNjJqpnC tjlDbA03eUd3KYY3R/QHLoBO/DnHM19KhLBiZPPtFVjhQ7JQSygcGL+ApgGnfs5rYoWg Q4D5l2pYu0f/tRmXjiVsBgDlEUU0sOdIcHzZk6xbhmXpHHsIvpokplcwJqs1Gu8/dUwf JPSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RBKnLfOa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i38si1008623pgl.94.2019.03.20.00.09.57; Wed, 20 Mar 2019 00:10:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RBKnLfOa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727452AbfCTHIx (ORCPT + 99 others); Wed, 20 Mar 2019 03:08:53 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:52446 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbfCTHIw (ORCPT ); Wed, 20 Mar 2019 03:08:52 -0400 Received: by mail-it1-f194.google.com with SMTP id g17so30002384ita.2; Wed, 20 Mar 2019 00:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pT/tFO87Fgg1H9sne6N3fiyT9w1xy0s9QxvBKnrOsNg=; b=RBKnLfOaoYZH6YSRrbOOjqP5okECkvx5w3jxFNXbU+A3iqb7XzbkXbtAEh6dI+eJeM A92Xat6XcYslJigA3vgnud583kbULVb4jviFiexBmtmGSOH0udiT6rc7GhVuYRgLjWcC iVbdA/GGfPJajnlNj1M853xZohkaNyYvxt8hQjdITu4L48ePXT0G3gUIqC3dBrfKVC/r wwAHUAMlDEs9SGSnRaBLoInQ3Wq/J4ziupbnl6ZdHiskzDq0Vs7v8sEFKL7bxQKY7/d+ TgLRz7KWRURpMDboNT6MOobRGubn3HD7LQUYpw8FAl1wPIkjWjSz8Gai39LExbkfDJet dcPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pT/tFO87Fgg1H9sne6N3fiyT9w1xy0s9QxvBKnrOsNg=; b=YkZzuPKZX17GsKVdIV333Hc1MYcDzOLSMTtXyFfxVQ9azugN9l4p4ub6+WKaQ6fDvA nVx+zPtyRi0t07+PCZIcgDUr35do6QYVkS9I7X6TYKe2WJPcVhD7+0puPBHqAhOruCcV d48t9qz/OzOF8GpMw2hskJGakhyV1Pe13DtwQSjUpUbp2lJ3wOu0O5NFirUBRwVTmcvz DRZGhUSk9nn/IliiMveghBtdY4/cc/ZzULsTpvEv0OLxb4IrHUAFN1plrDxnavAXZl2y qf8XAE+9XcalBmftrGy4S6lD52HFecQ/WfTB0yMQHtSe2lWI9fhi9lr0SDZzScJBD8xe gUUw== X-Gm-Message-State: APjAAAUW3gWlWG0q+Y9Ccf6l+di2YL8/J86ZZT/1jgtlVKjq5DxgMGKi QIq1EFw+VkZ+090lIwYUN0RQR/ZNxhAndXlteTI/cu4G X-Received: by 2002:a05:660c:a54:: with SMTP id j20mr4241072itl.158.1553065731632; Wed, 20 Mar 2019 00:08:51 -0700 (PDT) MIME-Version: 1.0 References: <1553012645-28989-1-git-send-email-chongguiguzi@gmail.com> In-Reply-To: <1553012645-28989-1-git-send-email-chongguiguzi@gmail.com> From: Menion Date: Wed, 20 Mar 2019 08:08:40 +0100 Message-ID: Subject: Re: [PATCH] net:mwl8k:move spin_lock_bh to spin_lock in tasklet To: Jeff Xie Cc: buytenh@wantstofly.org, kvalo@codeaurora.org, davem@davemloft.net, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Is it possible that this solves this long standing issue? : https://www.spinics.net/lists/linux-wireless/msg151171.html Bye Il giorno mar 19 mar 2019 alle ore 17:25 Jeff Xie ha scritto: > > It is unnecessary to call spin_lock_bh in a tasklet. > > Signed-off-by: Jeff Xie > --- > drivers/net/wireless/marvell/mwl8k.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/marvell/mwl8k.c b/drivers/net/wireless/marvell/mwl8k.c > index 8e4e9b6..21a86cc 100644 > --- a/drivers/net/wireless/marvell/mwl8k.c > +++ b/drivers/net/wireless/marvell/mwl8k.c > @@ -4631,7 +4631,7 @@ static void mwl8k_tx_poll(unsigned long data) > > limit = 32; > > - spin_lock_bh(&priv->tx_lock); > + spin_lock(&priv->tx_lock); > > for (i = 0; i < mwl8k_tx_queues(priv); i++) > limit -= mwl8k_txq_reclaim(hw, i, limit, 0); > @@ -4641,7 +4641,7 @@ static void mwl8k_tx_poll(unsigned long data) > priv->tx_wait = NULL; > } > > - spin_unlock_bh(&priv->tx_lock); > + spin_unlock(&priv->tx_lock); > > if (limit) { > writel(~MWL8K_A2H_INT_TX_DONE, > -- > 2.7.4 >