Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3270059pxb; Sun, 7 Feb 2021 03:48:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVTw4zWRTFtqueYgrJ0GgF9XJQl9yfl8m51CVWUcYEiCY7I4P6rxKb/4kzY/dncj12wwv3 X-Received: by 2002:a50:c04d:: with SMTP id u13mr12323595edd.226.1612698534559; Sun, 07 Feb 2021 03:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612698534; cv=none; d=google.com; s=arc-20160816; b=PqdEHnwoOLIRe2Vq/wFs1sC7ItuSFux9qbcx8Jaew/+1m9PM9FFGuZIBU14JdVDGdl yI8YghX1aRbJw8tD28Xl2Yqu+CLHFJxmqYkWo5KKHOLMptJ2VLOFKecgbIE5lhZv/gtj 9lEb3psaLt58yu3rsoUpKBom7D4Sp7AXg9XH3tsWVc1kcZ/sinxcH/rM7oGH3biIgZ2U 2srsr/DS1hIzJdqYFLcpMKZnOo4EmKCBnmFVpxijLTeYSZjJnP1xZOGUxv1EZlmyfYxN xtVZIa3KiA6TQgXsOBYjdn1yChEsm+45yPoocGV8bRE+cLMu8VEQth7wln1MeuTdT98V JOlw== 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=Bbsn8GvJYU8cfOTv1CRtK+2ysiWTQsgWrFkQEOItqXo=; b=GLOKMmALtAuefOyK/sTHhP0jnqJZqFsBOyc4lxoAsFpPtJnkv0KjAxNUKo8SQvkbB7 CiVlo7B4jPs5uGfkxtVOPjfwgOXXMH/tgqL6prlZeejS7uRZy15yJTf4JVx3Npzgtj3S ckiIdC/HVSB4N0JD6fYoLunnSvqdFvBI5krbVAEqtmLTKrO79Q3ZKxxru3ilDsVTGTMM DLI100k3japt7y43u/MQAOAf7sYqc0RqUs8n8fg/zZkhcrRlbRm9lt1j0EyNL3ETSETL X4DJAc6AohuYvX0nKBRseLE+fw5iFmlNb3R/w7jVhffbaUUGOk42VF1SNcc1wV3tPXpm DFcg== 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.48.31; Sun, 07 Feb 2021 03:48:54 -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 S230122AbhBGLrt (ORCPT + 99 others); Sun, 7 Feb 2021 06:47:49 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:12089 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbhBGLlG (ORCPT ); Sun, 7 Feb 2021 06:41:06 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DYRwg5XKFzMWS0; 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:32 +0800 From: Xiaofei Tan To: , CC: , , , Xiaofei Tan Subject: [PATCH for-next 17/32] scsi: mac53c94: Replace spin_lock_irqsave with spin_lock in hard IRQ Date: Sun, 7 Feb 2021 19:36:48 +0800 Message-ID: <1612697823-8073-18-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/mac53c94.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/mac53c94.c b/drivers/scsi/mac53c94.c index 9e98977..ab59c79 100644 --- a/drivers/scsi/mac53c94.c +++ b/drivers/scsi/mac53c94.c @@ -182,12 +182,11 @@ static void mac53c94_start(struct fsc_state *state) static irqreturn_t do_mac53c94_interrupt(int irq, void *dev_id) { - unsigned long flags; struct Scsi_Host *dev = ((struct fsc_state *) dev_id)->current_req->device->host; - spin_lock_irqsave(dev->host_lock, flags); + spin_lock(dev->host_lock); mac53c94_interrupt(irq, dev_id); - spin_unlock_irqrestore(dev->host_lock, flags); + spin_unlock(dev->host_lock); return IRQ_HANDLED; } -- 2.8.1