Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2007741imm; Fri, 7 Sep 2018 09:24:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZyf6dTiW97oymLO9i6VX8TzD35/fn0A5Gb7y8FzXvtv2UiehXDkmQmQT/LhjZAjyAdHTCX X-Received: by 2002:a62:64ca:: with SMTP id y193-v6mr9240375pfb.250.1536337448388; Fri, 07 Sep 2018 09:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536337448; cv=none; d=google.com; s=arc-20160816; b=jpGsVj1aXc2baugS/qsYjTZXZBdZdIctdHY67NEE5RbUpIAw+liV8KzEbDWWnYGuHP vC5ibTE3a2Hz2827WrrnAscaKh8S3Z7uYYQcSZpRpTiNFO+/HJc8Sxh8ungUOXHouTch PHWDExym6wnpDQHRiHAHcEC+6a2tYzxHlmyCOfOwfH807dk8g5KwfsdW3f4VGPPgIrDy uO1/C2eokLVlqik1dvKT4Fw9SC6jErrcxiYe/pgAJc7/6qDps3PGWSCUDVKPHRw6bkje 3Qiynuz3u+nZLgOvh/yaGyuyF9yJHwHnTmUZOZfPMTBHatK/mG+2FOYHnpc52uKUENAO T39Q== 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=NbBY1Q1zk3OyZro9J2iQtQaICy3XUuYcv9+RFq9/QQ4NbKRhLZhWSORTz41NM2sCie OMzojMgvjuoEyePUR6eOlJvLCQhCot3EyzhkQEt7OkUEG7NbaZKzllPX8v/v5Cql56Yy LTVxYrYobS/qDWKlvuY0ppFAO3TIp/08N91JgK1GtiBJwwJfK71e6UsjwYCxqTQncqvI XDoBneP0Fa6sRmcq1BN1Ww12w3E00CKPsJ+NH9GLgL9HKs6lvizE3SRcn3YxEEProQ8r t+glLpScpM4Wk5hl8ocgy33hWpNrfPV+zYRDSRS+FMcY4+aLweA6hBc3BOeSyip9/BYV MzyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=VVyZjWlg; 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 l3-v6si8965970pga.137.2018.09.07.09.23.52; Fri, 07 Sep 2018 09:24:08 -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=VVyZjWlg; 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 S1728095AbeIGVDS (ORCPT + 99 others); Fri, 7 Sep 2018 17:03:18 -0400 Received: from m12-11.163.com ([220.181.12.11]:36621 "EHLO m12-11.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbeIGVDR (ORCPT ); Fri, 7 Sep 2018 17:03:17 -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=VVyZjWlg7s462HUGYyPMRwfGqh6KXsnNV3 vDTMnRZbgkcsDmAg3XBa+AdPp/YRsWfXQHdvru83h9VHhCOTfb9rUQG2TtFrj1rf 59lwUVh1VCAMECEB6bzt9DLCPonG5PxNKakYMrQK1NmUglZ8A4XsrRtCGjmhQDgs NnkKVAIeA= Received: from localhost (unknown [183.156.140.9]) by smtp7 (Coremail) with SMTP id C8CowADH5Q6DpZJbve+9Pw--.886S5; Sat, 08 Sep 2018 00:21:25 +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] ethernet:netronome:nfp:move spin_lock_bh to spin_lock in tasklet Date: Fri, 7 Sep 2018 09:21:17 -0700 Message-Id: <20180907162117.47361-1-hangdianqj@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: C8CowADH5Q6DpZJbve+9Pw--.886S5 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xr43KryDtF1UWw15XFykAFb_yoWfurbE9w 1jgFyfGayDJF1Fkw12gr4aq34Ykw1DXr1fuF97KaySv3yDJFyrCw1kWF98JrnruF47Casr Xr12vFy2y342vjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUtEf7UUUUU== X-Originating-IP: [183.156.140.9] X-CM-SenderInfo: pkdqwvpldq1yi6rwjhhfrp/xtbBSQW6R1aDzFVnEQAAsL 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