Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1533927img; Tue, 19 Mar 2019 09:37:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHd5I/fM0d5Zo8kgHMEuXY/b5cm3DqEbsM7+a0Zd409Wb5JWI5RqsIQaEDdv1ES103mgC+ X-Received: by 2002:a63:1cd:: with SMTP id 196mr2682227pgb.58.1553013472337; Tue, 19 Mar 2019 09:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553013472; cv=none; d=google.com; s=arc-20160816; b=0e1yC81O16sNo1Sv7JBb/nJZGE369eaPdCgqM4CLQn0anLvkUtuDcN33fU7ywezFvQ 4rY4W37cwjuJmisORdcLdxWiINMDeCJY1TtJuxp3I4xufUDJALpxwkjvpKMSg9Fjy89M x39KOx/7ApOo25PeCs7BfFR/hPaPSMXpVStqY8ANQWCeDv7jqcoFCZcd334aGLXKtQpM PpbDVFlzmQ18p/U1AM8xkgpMvcOcrtXKY+qRLL7n06v0TJFOb2irsLj4lVjX9EIimZXz iV6eqWUNmk2gzJPhvnowjlRbt4wYEhSKPuUEy2D7E8GIOwBDCGgHp8tVFzb9YNwSnegy C4Eg== 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=o/hu19s9IE7P/1X2IZsAaNo1mAHXce/eUIJAnIIL4nw=; b=DoweSrBC+Ez/VYHRIjtbsRaM4hr5p1XFO3ks0P7/4exFnizJUwV/cJYTT/IUhBCV3k QXDaycLR65n71dGcgSD6nUcXtM2w9yxUmGW5OlJBA9MOh4CsHrgsgm3xRttbaOgindNE 3uvbWRY0UAMu2q4/VVNaSs579qnAMG7R0OZIJs4S8lBBkMkpnO2c02cUhwwokLYVCmpZ mW5M09BNwVmtwPqxdcDIDpKRUz/LY9kWZPWxvSdEs4TnYIgIaQBc6nzYElOtRJ19b8ge kmyfGItFRcfWKgPM++1zzuOATeZ9Xo97p6B9q+RySAtuQC7Hx2YC5AGvCLbDFf1Av4kJ ovIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZznNJAtS; 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 t64si12565415pgc.65.2019.03.19.09.37.37; Tue, 19 Mar 2019 09:37:52 -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=ZznNJAtS; 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 S1727929AbfCSQgv (ORCPT + 99 others); Tue, 19 Mar 2019 12:36:51 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44468 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbfCSQgs (ORCPT ); Tue, 19 Mar 2019 12:36:48 -0400 Received: by mail-pg1-f195.google.com with SMTP id i2so730240pgj.11; Tue, 19 Mar 2019 09:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=o/hu19s9IE7P/1X2IZsAaNo1mAHXce/eUIJAnIIL4nw=; b=ZznNJAtSuS8zs3O9UxyG7Tg6zio0hm57xVWXvvuQ1Uqb37ViJHuF7E43AVLturz/Rw vnd6ozm1Ode0yQUKkfsDsnLf5C/GbRcmDYgmv3mdtgUYAC3OwhKKDafQ2bffhj8rqMeu i+xjwUD2o14y7GPeGkZS/ddWxDzN/Y76tY5Cneu4SblU5QGSe5mzABBWVTL1/6wOgEMG kgUY7OoDnusLnCKZCrebEC+uEGGgOj5VvKr0SNhdWjd7EeokMMEo+CA47m9Cok2KGImX k5a1ckQxtLAfpXrusnstyxD++O1TTAkIpCrj4VV+9GM5sw07KwZEnyc/Sz72N9Qq4N8V ZgXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o/hu19s9IE7P/1X2IZsAaNo1mAHXce/eUIJAnIIL4nw=; b=CLBxonmYK/VWvAQMfDrkE33ny1YnHyCrjDoNbj8lHrEYTIuKD+nhZb7+H+qY4AQKIz QT3IBFdCDrVVypX2S+ixVFHmM19Ff+8fumUvpWvQwCX+iVHf9ELoWCF1+f5xY0chjZLO 7eGU4btSo+tGzkc7j4rLd0uK/CapemDDtLXojNW28+8EDWkW8809keeQAuryBUh6OsPF bUy+3TDEya1IlDJIxLKuRSodlQ+tFlYcWfLJwr8dNwZ4KCFMnhpPmDAVBxWY475SpSib E3No51muS43TV2t+xgkHVhxKQg8zd66Xb5WP+fcLABp3hbmV871RYccP05GdrDj9+gUP eLPQ== X-Gm-Message-State: APjAAAXX6M3TfshQn65eyZ+VaL7YHnjcT6OaUe/AmMMuQJDrqzTnf4IE PrUvL+mxhWQ+aLAh9cOZGSc= X-Received: by 2002:a17:902:b404:: with SMTP id x4mr3475338plr.232.1553013407823; Tue, 19 Mar 2019 09:36:47 -0700 (PDT) Received: from localhost.localdomain ([47.91.249.165]) by smtp.gmail.com with ESMTPSA id x6sm11238198pfm.140.2019.03.19.09.36.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Mar 2019 09:36:47 -0700 (PDT) From: Jeff Xie To: selvin.xavier@broadcom.com, devesh.sharma@broadcom.com Cc: somnath.kotur@broadcom.com, chongguiguzi@gmail.com, sriharsha.basavapatna@broadcom.com, dledford@redhat.com, jgg@ziepe.ca, nux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] infiniband:qplib_fp:move spin_lock_bh to spin_lock in tasklet Date: Wed, 20 Mar 2019 00:36:37 +0800 Message-Id: <1553013397-29263-1-git-send-email-chongguiguzi@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is unnecessary to call spin_lock_bh in a tasklet. Signed-off-by: Jeff Xie --- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_fp.c b/drivers/infiniband/hw/bnxt_re/qplib_fp.c index 71c34d5..e2541c9 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_fp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_fp.c @@ -273,14 +273,14 @@ static void bnxt_qplib_service_nq(unsigned long data) << 32; cq = (struct bnxt_qplib_cq *)(unsigned long)q_handle; bnxt_qplib_arm_cq_enable(cq); - spin_lock_bh(&cq->compl_lock); + spin_lock(&cq->compl_lock); atomic_set(&cq->arm_state, 0); if (!nq->cqn_handler(nq, (cq))) num_cqne_processed++; else dev_warn(&nq->pdev->dev, "cqn - type 0x%x not handled\n", type); - spin_unlock_bh(&cq->compl_lock); + spin_unlock(&cq->compl_lock); break; } case NQ_BASE_TYPE_SRQ_EVENT: -- 2.7.4