Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3270566pxb; Sun, 7 Feb 2021 03:50:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvNWEJIouaWex7Nau/iJ4CKCit2YkjaoCnLL5Ueyfv1aW0K/q40QGIMl8MEizbK0YnGb96 X-Received: by 2002:a17:906:b2c6:: with SMTP id cf6mr11602553ejb.99.1612698604216; Sun, 07 Feb 2021 03:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612698604; cv=none; d=google.com; s=arc-20160816; b=DZueeKkeZDk4eh/HV3lF+fhtykYnKug+OB5u51TbcHuMLH9rqxCatpiXd5cdxiHsg5 CvU4Akm3feh8jIhxzY6BTJwxozYyuc7nx3ZL/RycVR5jzrHVxiEfFLUvsiCqVS969waB tYXgXIdZBvaddCipasIBXXlzPVZGLH/uljMLdkBSv+siI+v1jzX+k3xnl4sG8BV8J3OY I/G/8uzio4AzZuCdGEv7WQsCSwsXUbSCqsoGI3dVVfJ/FEoBgdt/CwCuNcXzI20SEGzV aWG2n6AxiCuSFrguqV3QMnBCP18rZ9K4KtlSMoA0uOkujRVUFcYU/uVYNxwbOadUDmiu rPOg== 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=eYfJ28TtWRjGNHNBWK6Equg76ijVF4BzseMxShnso2U=; b=VSmjBjybRhBvidDf2cvuv/740e6vuHeFD76onW8ExAZpj27YvlW3Y6DvnNdjCs5FL1 /JUlb6831U5AOvrj/v/4nBZudvOKCGs/RUaooR9NRCA7riYjlZxOd1qLKm1ENek6hPBW URONoh8DDmEFQMHoBQnLrDJRPrRb0IgYo4oYCaZe0dMcqtxdKF9syGhiUB88MkLeoH8o i1n1rlf+UaxBWd8UeV8qVjzSrEpL7nw/QzN34HmknqbQUAVSYraWohhdvlwud7DcXTdy P7IRrdA7TzQyNp53ZtTmapn/vOLJ3P1zQvO9MvsA6cHNIEZDezknU7N29LDcxIJ6NDZN jQsQ== 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 w20si9412439edi.528.2021.02.07.03.49.41; Sun, 07 Feb 2021 03:50:04 -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 S229636AbhBGLrA (ORCPT + 99 others); Sun, 7 Feb 2021 06:47:00 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:12087 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbhBGLlE (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 4DYRwg54wXzMWJl; 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:29 +0800 From: Xiaofei Tan To: , CC: , , , Xiaofei Tan Subject: [PATCH for-next 11/32] scsi: esp_scsi: Replace spin_lock_irqsave with spin_lock in hard IRQ Date: Sun, 7 Feb 2021 19:36:42 +0800 Message-ID: <1612697823-8073-12-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/esp_scsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index 007ccef..1e44fb5 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c @@ -2175,10 +2175,9 @@ static void __esp_interrupt(struct esp *esp) irqreturn_t scsi_esp_intr(int irq, void *dev_id) { struct esp *esp = dev_id; - unsigned long flags; irqreturn_t ret; - spin_lock_irqsave(esp->host->host_lock, flags); + spin_lock(esp->host->host_lock); ret = IRQ_NONE; if (esp->ops->irq_pending(esp)) { ret = IRQ_HANDLED; @@ -2198,7 +2197,7 @@ irqreturn_t scsi_esp_intr(int irq, void *dev_id) break; } } - spin_unlock_irqrestore(esp->host->host_lock, flags); + spin_unlock(esp->host->host_lock); return ret; } -- 2.8.1