Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3270070pxb; Sun, 7 Feb 2021 03:48:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMKPdt34mI/JwGclz5U1oBEYD7b0qQ7usUyEWmpSZv88rBDeoLXZ0EjUtasGORMI7sCN1O X-Received: by 2002:a17:906:f950:: with SMTP id ld16mr1611813ejb.248.1612698535463; Sun, 07 Feb 2021 03:48:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612698535; cv=none; d=google.com; s=arc-20160816; b=YrGb8AoiY2OFSW49QhUXpzMQo+V1qoF63bs7kSBRH/PY1OGaFySbjeYCK0YUK61U1J 9GN3O84KFvnizg3oEKhN0sP77NRtLprAWwP3Y5ajUYGyK8kLBK0arWVuN39hJ1dlDzqK mtbnPuUYCultUEgYlv90gOtc4gLwkojOSGdcQTI2ayjfioQR3+Czvg6ifw4koCA8d43H wlXDcgrvk9xuUb0YX8dr4HjsZ82r00sjqh5MLw26QhYApP8kNTC879OqvGNtGCC6Zui5 e76KNEx4nC7cAH1w3fVScyU1YWHxe7IbEbLgzZnMk/p+5XVAeOlsgtM18vWCw9FSz55c bwNA== 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=KSAxMKQ4Zpt2qSI62O2AqOwIE/RdAiZGXXsXMSB4No0=; b=HzrO1ww4+QHdIIBT5P1kXO3ZZPpEDtjrtS73+eVUoMvKJnkFqebdhM1jSzOw3cToZB igqQ+pOP55mdjsyFPT3WYk3yEOODdmzY88/5zujAFvyyEyP1VWzDfgj/w7w4eiC+30LR u3P1MbcMVecGrgKcqkOx78MniSao3iZwHJoHp4ZOSoH4+uYhsmIdtxqJdaUxlFQl+56z CW+kvruL+Zt6xKm42fLwJfkYxeTrZnw/FGnPKSbhoehCSlASCjvFGfgqt6Q7OltKusMo DIZBDCX/dIu13eYoygpGJeqyXr7CKHQTkCN1xsFIJTzH+09wTfzmIr9sRNT1BOIv8TOf gBqw== 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 l24si8924255eje.495.2021.02.07.03.48.32; Sun, 07 Feb 2021 03:48:55 -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 S229941AbhBGLrf (ORCPT + 99 others); Sun, 7 Feb 2021 06:47:35 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:12088 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbhBGLlE (ORCPT ); Sun, 7 Feb 2021 06:41:04 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DYRwg4rpXzMWRG; 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 09/32] scsi: aha1740: Replace spin_lock_irqsave with spin_lock in hard IRQ Date: Sun, 7 Feb 2021 19:36:40 +0800 Message-ID: <1612697823-8073-10-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/aha1740.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c index 0dc8310..fd9787d 100644 --- a/drivers/scsi/aha1740.c +++ b/drivers/scsi/aha1740.c @@ -214,14 +214,13 @@ static irqreturn_t aha1740_intr_handle(int irq, void *dev_id) struct ecb *ecbptr; struct scsi_cmnd *SCtmp; unsigned int base; - unsigned long flags; int handled = 0; struct aha1740_sg *sgptr; struct eisa_device *edev; if (!host) panic("aha1740.c: Irq from unknown host!\n"); - spin_lock_irqsave(host->host_lock, flags); + spin_lock(host->host_lock); base = host->io_port; number_serviced = 0; edev = HOSTDATA(host)->edev; @@ -308,7 +307,7 @@ static irqreturn_t aha1740_intr_handle(int irq, void *dev_id) number_serviced++; } - spin_unlock_irqrestore(host->host_lock, flags); + spin_unlock(host->host_lock); return IRQ_RETVAL(handled); } -- 2.8.1