Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3270066pxb; Sun, 7 Feb 2021 03:48:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJywn58BMCDLczgLFvKKYnqzNDW1H+DBlCev0MziTtNDiJpXfPut03lZDeW5jfT1kUnJ2AwY X-Received: by 2002:aa7:da8b:: with SMTP id q11mr12043481eds.325.1612698535087; 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=ghUGwEZNs5QIB7RrbJQaGfaQxwWKglEU3vMRT/gZeUG37VKzfBHoIyVMvT/NPIwPZt udz886x8Ojszx1qH01ZELsn8w8EGBqQW7/kOwS6Ezzxi0qSyFIImy4FIIK15As11K3I5 URuXKOaySae+dEdMK8uomdjKosJ0GfX0oi9XT5tB4Dv+z93Fr6WYsfFQjEhU7oTWihAy vH+5IMAwwGedtT9ErI2pKvOj4TD/BomhbDjOZp0E4LI9NttgpEhe62QG83WeEzVDzbDn zcNWCpVtcvVI+pVjBNhpWvsRiU2gYtfCLgVM63/4q+Vys5vqgtIfab6+wFOWJaZqRq7p PDSw== 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=/Hon8qReNbD0xC4L5ZLleo3GDuZB4Xft4/mrKcu/bng=; b=isi1bc5mwQE8tMl5QkNPXQcgWzdw8RD6OuVCsb4pbQSHeHXMmhmIhokFBSmBbfK69q WqPIsm0w8R5WzjycCzNqYKg6LJizte99Pqnli8C3KllSnkSAqO0Yfxdj20NPncb6emc/ Nj+EjLygdW16HDi8qw6vF9u4J68Z356N4WI2RHDdFNOs5vjtOplbGdV/2XCCKBWxwJPy gP17XlGUo76dWEOw/8JeMsVNH/i/kCfnvxSXbNnx3sm1lLHM5EIr/unmfwEmPcvL77Cl z4oHyMlh5BlpExQz47/6JNb4WD4LUJGl48kjjJSQ/q/JJ+dpZGUQwgFUt3GhmRvgMwXt /tSQ== 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 h22si9138873edq.522.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 S230058AbhBGLps (ORCPT + 99 others); Sun, 7 Feb 2021 06:45:48 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11696 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbhBGLkf (ORCPT ); Sun, 7 Feb 2021 06:40:35 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DYRwt0SFszlHCX; Sun, 7 Feb 2021 19:38:06 +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:38 +0800 From: Xiaofei Tan To: , CC: , , , Xiaofei Tan Subject: [PATCH for-next 32/32] scsi: advansys: Replace spin_lock_irqsave with spin_lock in hard IRQ Date: Sun, 7 Feb 2021 19:37:03 +0800 Message-ID: <1612697823-8073-33-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/advansys.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index ec56278..a80f5e2 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c @@ -7177,10 +7177,9 @@ static irqreturn_t advansys_interrupt(int irq, void *dev_id) struct Scsi_Host *shost = dev_id; struct asc_board *boardp = shost_priv(shost); irqreturn_t result = IRQ_NONE; - unsigned long flags; ASC_DBG(2, "boardp 0x%p\n", boardp); - spin_lock_irqsave(shost->host_lock, flags); + spin_lock(shost->host_lock); if (ASC_NARROW_BOARD(boardp)) { if (AscIsIntPending(shost->io_port)) { result = IRQ_HANDLED; @@ -7195,7 +7194,7 @@ static irqreturn_t advansys_interrupt(int irq, void *dev_id) ASC_STATS(shost, interrupt); } } - spin_unlock_irqrestore(shost->host_lock, flags); + spin_unlock(shost->host_lock); ASC_DBG(1, "end\n"); return result; -- 2.8.1