Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2058115imm; Fri, 7 Sep 2018 10:09:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ8g9N0Lt+bVnYkABE+sWOzbcM3NC1ZKZSyUvn2H88a+kre6ohgabSurUcc3iLmEaTCEusF X-Received: by 2002:a62:1192:: with SMTP id 18-v6mr9715649pfr.54.1536340160407; Fri, 07 Sep 2018 10:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536340160; cv=none; d=google.com; s=arc-20160816; b=F3tqLktCSrvS2QgAuvBkR8NeHetAt1S473v+qLsm3ceXIVnJPTjGIbV0Vn0kBRX61x b6biyp8N4+zfxmcTV0KxCDY6JFxHo/3Ue2MDqHA919Y6lE+IGJspxTUIHA8w6dEVNa2T in0Yjw4vB8Oinc5opYiDsFGPpnRB59EPtnE1AtrdXGV9NHYQK4NiQWcBmToGuXbkcjjE FRpGaXZUuX91FEDdJXBDsvz1HwwBuYuL/Ae3Mz9HkCm7i05Pf8uWOGeGuAIXoSWgXs6D /GMkZPeBJADBu8mYFqCcZkSh539SHVn0rMl4Q1osUik6a6ioEN34Fc+m0cW2jLlvXNo4 kPeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=B72PEnuV855N8cV59A1XctToscYSGNTF+WhMvsFSYrs=; b=AMzpaAGfo5oZdJSN8dwt2XZsmeuEqOn/BkUGaAgZBPtEIL2MBSXwa9HUO3HPOy8hze YEn8VgFRdwyF9kctrV1PZ9dxW5z0vDKYzY7KrXcMNNbeqwTyyQwECiqHaasAqzqXs2t4 L1yndoZZSYTrTCdhCr88bf7iKWWepBoIo/Ko9mHGYjGOd5P5OFOE4hYr12crviMII7FK aXt5iQyegrAJxvXnZRSrfdxNfa8GYUlZDIDqBrfx5uyYRkd1ujDSrGoKKpTteXEyOuN0 xGbpDLrVGPOjOKc4kwpqI2nv6u0RWzmBrwm0zmXLak+zmUdFIiL+2O7C3qTD+eW2/wTQ 4ItQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=edgAGnAm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si8280347pgp.220.2018.09.07.10.09.05; Fri, 07 Sep 2018 10:09:20 -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=@163.com header.s=s110527 header.b=edgAGnAm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbeIGVtE (ORCPT + 99 others); Fri, 7 Sep 2018 17:49:04 -0400 Received: from m12-17.163.com ([220.181.12.17]:44044 "EHLO m12-17.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbeIGVtE (ORCPT ); Fri, 7 Sep 2018 17:49:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=B72PEnuV855N8cV59A 1XctToscYSGNTF+WhMvsFSYrs=; b=edgAGnAm7piV3/P3NViQVj/HXNfJOQ+G6p QciNblhkA28lMqeic1zJ0KYrLJspNaSQUq4Y/51A8FyzgiePvuKIb4csBS78ZOlt M2VRO2MjNk0SGKL2Dv/PPJUTkVL883NmWLMSG/LNBpjq4D6nFDW3SSKVEXgpqeJr Fmnqnn70A= Received: from localhost (unknown [183.156.140.9]) by smtp13 (Coremail) with SMTP id EcCowACXz98vsJJbG45MDQ--.377S5; Sat, 08 Sep 2018 01:06:57 +0800 (CST) From: jun qian To: Jakub Kicinski , Dirk van der Merwe , Daniel Borkmann , Quentin Monnet Cc: oss-drivers@netronome.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jun qian Subject: [PATCH] nfp: replace spin_lock_bh with spin_lock in tasklet callback Date: Fri, 7 Sep 2018 10:01:09 -0700 Message-Id: <20180907170109.48150-1-hangdianqj@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: EcCowACXz98vsJJbG45MDQ--.377S5 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xr43KryDtF1UWw15XFykAFb_yoWfurbE9w 1jgFyfGayDJF1Fkw12gr4aq34Ykw1DXr1fuF97KaySv3yDJFyrCw1kWF98JrnruF47Casr Xr12vFy2y342vjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU01GQDUUUUU== X-Originating-IP: [183.156.140.9] X-CM-SenderInfo: pkdqwvpldq1yi6rwjhhfrp/1tbiJxK6R1XloAEGawAAs0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As you are already in a tasklet, it is unnecessary to call spin_lock_bh. Signed-off-by: jun qian --- drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c index a8b9fbab5f73..084c983ec3c2 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c @@ -2075,10 +2075,10 @@ static void nfp_ctrl_poll(unsigned long arg) { struct nfp_net_r_vector *r_vec = (void *)arg; - spin_lock_bh(&r_vec->lock); + spin_lock(&r_vec->lock); nfp_net_tx_complete(r_vec->tx_ring, 0); __nfp_ctrl_tx_queued(r_vec); - spin_unlock_bh(&r_vec->lock); + spin_unlock(&r_vec->lock); nfp_ctrl_rx(r_vec); -- 2.17.1