Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3271886pxb; Sun, 7 Feb 2021 03:52:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDsQZUw4exWS5SmQ9msw4pxaLiIkks7r3NWdpr4DTvlX9+FU/tz9woanY9ymCnGur3CDrE X-Received: by 2002:a05:6402:617:: with SMTP id n23mr12525328edv.257.1612698770069; Sun, 07 Feb 2021 03:52:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612698770; cv=none; d=google.com; s=arc-20160816; b=UPRRS59zB6GEnhNjqu9JSJ5Hsd/wAaRWbxBNAKdiTpugwlwyDlRZCbVE657F09eMNO PC4lfZluxAF1sGclehAFGWYuL1bc1Kh+mDhFIl3wV73+NkIIcqzXLI9DVinknrkVZeX4 Y11mcMpfTMs3fACCT5mjbgZoBvbyJYxK/2HVj7r3uCxZreiBqS5Ntop4isqNWM81ekyL 7DXWAESg5W+AijTsf2DISMwyzzWw5h7Wtb6ZoQgeEWFq9400dWkrTuDu55S3nyzS/L85 w6jOB5XUIoV2I2IOmaH97TRLbf2TiNOL0/DQvHwxgHyAMz+jTCBQNobdXWm7Sp3rwmkp VzuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=dvp6FwuhXqRE9Dv5qSDfv95W15oFlHuMo4NGan6MnOo=; b=Kqc5xpQlsWIIHPY82Qg+fbR9AQ4JqeoxyLUlpqUs3fjd766gZOqUDC3CzZ5QILyZ+A DPcDvPW5IHrqvxqj1/+id4akpBUGcRvsyulto4QfSC89BW318qt+tVV8CT85nXPPEzEs TI7ync23mSPsIQEchG+z4YZuejlVrIm3gvsERgvWkfRaY4v7VxFoD+4s2ZULUF7H0zmd uaz2Hv9j2d81oEhh0EL2BziasBop6ulEt7NFEOf6p/YJLMd4l/rWHLm2AtYZPPDX+CeQ qpJNxlgVtBXs/ZGDV8SA1bhScujh8BE9y2SLkVo8LKLRQdH3nF++i1uIU5vTy6DqWEVX QItA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu6si2504203ejb.414.2021.02.07.03.52.27; Sun, 07 Feb 2021 03:52:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbhBGLvw (ORCPT + 99 others); Sun, 7 Feb 2021 06:51:52 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:12452 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbhBGLlW (ORCPT ); Sun, 7 Feb 2021 06:41:22 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DYRxV1trczjJmL; Sun, 7 Feb 2021 19:38:38 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Sun, 7 Feb 2021 19:39:36 +0800 From: Xiaofei Tan To: , CC: , , , Xiaofei Tan Subject: [PATCH for-next 27/32] scsi: qlogicpti: Replace spin_lock_irqsave with spin_lock in hard IRQ Date: Sun, 7 Feb 2021 19:36:58 +0800 Message-ID: <1612697823-8073-28-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1612697823-8073-1-git-send-email-tanxiaofei@huawei.com> References: <1612697823-8073-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is redundant to do irqsave and irqrestore in hardIRQ context, where it has been in a irq-disabled context. Signed-off-by: Xiaofei Tan --- drivers/scsi/qlogicpti.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index d84e218..078555e 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c @@ -1203,10 +1203,9 @@ static struct scsi_cmnd *qlogicpti_intr_handler(struct qlogicpti *qpti) static irqreturn_t qpti_intr(int irq, void *dev_id) { struct qlogicpti *qpti = dev_id; - unsigned long flags; struct scsi_cmnd *dq; - spin_lock_irqsave(qpti->qhost->host_lock, flags); + spin_lock(qpti->qhost->host_lock); dq = qlogicpti_intr_handler(qpti); if (dq != NULL) { @@ -1218,7 +1217,7 @@ static irqreturn_t qpti_intr(int irq, void *dev_id) dq = next; } while (dq != NULL); } - spin_unlock_irqrestore(qpti->qhost->host_lock, flags); + spin_unlock(qpti->qhost->host_lock); return IRQ_HANDLED; } -- 2.8.1