Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3270574pxb; Sun, 7 Feb 2021 03:50:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyU+E0Hkz4UiupAK8b0h9Yn35cHzuMW7IgNE0izUla93dnvumbHN0aPxUki+yWv2VoYRP/i X-Received: by 2002:a05:6402:125a:: with SMTP id l26mr12718585edw.188.1612698605811; Sun, 07 Feb 2021 03:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612698605; cv=none; d=google.com; s=arc-20160816; b=F41avsJ0jHGqqYUHu659lUZQfJVEvzAT9ESDwFOoKltKJXu4Q9XL9lke1X6On46yx9 BFIxpiZLusOp/EUdW1E1ih6yNaC5o3t0Yfmpfm3uCmCNpTku06Wm79IqMkCGNXnl31/D E/qgkCdGcu1Tw/pMGAicrlea+o/iTQ1BFDmbZjKz6G+hUnjdooMAhZOHY1iuUp8WQ0Wa joLc5zBdf8Wr34i+894yLm0FG8ShSFk7qBMtmCoFTFbzeD1PYLseKgDDBa3KUAslCer7 GubfRgfbMu1lrvqbYMiorX5bqCyUmbmOH4eHFkghmX7Z+hd48RWJ+M+5nOxndpdb3YVj 8OIA== 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=llvmVzahow9k+zMaTxXafQaQbT+WURzmjiiwBPRUDig=; b=C45IICUz09sQDcwwVuhPFWwzBE7QmOT0XrDrRW8mzj4FgVYlF5Inwb/EQiJug90Cu5 muogG+mV17jm6Xoy4bOEAZlV74pjwsve2ed1cadleMqlUxOG2D3U/AlGDmGH38L2CDbe HKyuI4/DWFjgEi9GvkQL6GKb9LJCw+rB/m2FflTYYXY60pGTMF9yy0KjFDSDVy+C3dvw 2dcypC4RkCeqm84QDo5OzCQEXpoU5vI5qgKvNNE/bEeZD04yRvfTzORLHrZ4ooG6MFUW zwYbqZtSKEhsSUqDX3iZlPIVrW6UPZoqvOh1im27Z6fITzyftBajkT+0yUQ5TGN40dFE HqAA== 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 j26si6734136eds.297.2021.02.07.03.49.42; Sun, 07 Feb 2021 03:50:05 -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 S229978AbhBGLtL (ORCPT + 99 others); Sun, 7 Feb 2021 06:49:11 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:12526 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbhBGLlI (ORCPT ); Sun, 7 Feb 2021 06:41:08 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DYRwg604XzMWS8; Sun, 7 Feb 2021 19:37:55 +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:28 +0800 From: Xiaofei Tan To: , CC: , , , Xiaofei Tan Subject: [PATCH for-next 08/32] scsi: a3000: Replace spin_lock_irqsave with spin_lock in hard IRQ Date: Sun, 7 Feb 2021 19:36:39 +0800 Message-ID: <1612697823-8073-9-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/a3000.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/a3000.c b/drivers/scsi/a3000.c index 86f1da2..ac063a5 100644 --- a/drivers/scsi/a3000.c +++ b/drivers/scsi/a3000.c @@ -28,14 +28,13 @@ static irqreturn_t a3000_intr(int irq, void *data) struct Scsi_Host *instance = data; struct a3000_hostdata *hdata = shost_priv(instance); unsigned int status = hdata->regs->ISTR; - unsigned long flags; if (!(status & ISTR_INT_P)) return IRQ_NONE; if (status & ISTR_INTS) { - spin_lock_irqsave(instance->host_lock, flags); + spin_lock(instance->host_lock); wd33c93_intr(instance); - spin_unlock_irqrestore(instance->host_lock, flags); + spin_unlock(instance->host_lock); return IRQ_HANDLED; } pr_warn("Non-serviced A3000 SCSI-interrupt? ISTR = %02x\n", status); -- 2.8.1