Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp28920pxk; Tue, 15 Sep 2020 16:50:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO2wZ6DkFLpZmPsMVPxE23oP3LhmE2eOBlFrUubBJ+B8t2TxO/ZKNOmnVU4rHvnWwzFhsJ X-Received: by 2002:a17:906:9712:: with SMTP id k18mr22272984ejx.76.1600213857928; Tue, 15 Sep 2020 16:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600213857; cv=none; d=google.com; s=arc-20160816; b=NBnfd5UO08lrSCrfiVnF84eFTdVWA8W4fGc7oiv7mhkCSW/u1H5lrXG340LQxpGHLP ktbygjzsgGkz8cafCzB910oOfWrVsYwmT/xOIKocGZv04Bfq9Jsj5GCZ0xxOPMmG/GvT RcNbOmE1IlcNt4F1Bs7IsKf93/4qWAHSMB/e5Ekfxv/65m/AOPN3eNxmvt8HO9fLkbon mW3NJOGgWE4jHQa9DGGTWUVBqVNjYUsV6jv/9MvaJsAIz+PCKXtVcUO7Kj97DyC3XeyF ELpz3q8+q8mG1mW9tkYVkL1TIb7prvkzU2Pcxi1qlr3kwDier+OqXP1Zgi+4Zh34bxEI ICMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JVTx39Uoi7Us5rP94yHKgnnBbJ6/M97XHTrQmRvE3mM=; b=uZZFgZVXe7hW0Xv/lB75jIHL/cqFYXWO/1rYgBa1i1fFhwTfjO9zYKeXN9aHUBQjtM Ll6XO0a+ojCgmAdZcpEQvCCShZCse6k64sxrDQ9UJasuUYX8y24GmjOQ8G1WSt2D6VEy +ITQOCkdnE/17AGWA35kk4hCMyvzTLVDQLFLDZrIzKJd4BYqIaYreOjIGpOBK4OP4RI5 w1LzrU3JbaKBz5O31L5g+BuvrOE63SUjMRfJDDzL3P1UPrZY2YkQLW7h/wSB1oF4UvUD x5MkXX9RH/JSkOJlvpqyzVYekkYWwotO1uxeTbmoIY6TqFSGp6riBT814Sqa9jF7BE1T oKyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AE8fqKZN; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox9si10078952ejb.97.2020.09.15.16.50.35; Tue, 15 Sep 2020 16:50:57 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=AE8fqKZN; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbgIOXr5 (ORCPT + 99 others); Tue, 15 Sep 2020 19:47:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:44122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727011AbgIOOdX (ORCPT ); Tue, 15 Sep 2020 10:33:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7B38923BEF; Tue, 15 Sep 2020 14:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600179906; bh=JsbqIvjQPkIS7vbY9pJ5xV8+gAdEwSWQ7PKe6NpGvQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AE8fqKZNelJp2jwi+WpW398z+jKngKD8uVYioB//TjDznIcV+FxjEc7BvbjXCkjp8 FNhnp2gx9NsQNvXGcPiZs4oge6LLgKZ3yS1qi9QyUbJM7VuUKNE9i0Dcs2se2NCT8c 0h/9FOmV4CJkadJ1b4JLckd/peO1z7t39zJ3Q+E0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tomas Henzl , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.8 032/177] scsi: megaraid_sas: Dont call disable_irq from process IRQ poll Date: Tue, 15 Sep 2020 16:11:43 +0200 Message-Id: <20200915140655.180282567@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915140653.610388773@linuxfoundation.org> References: <20200915140653.610388773@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomas Henzl [ Upstream commit d2af39141eea34ef651961e885f49d96781a1016 ] disable_irq() might sleep. Replace it with disable_irq_nosync() which is sufficient as irq_poll_scheduled protects against concurrently running complete_cmd_fusion() from megasas_irqpoll() and megasas_isr_fusion(). Link: https://lore.kernel.org/r/20200827165332.8432-1-thenzl@redhat.com Fixes: a6ffd5bf681 scsi: megaraid_sas: Call disable_irq from process IRQ poll Signed-off-by: Tomas Henzl Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index fcf03f733e417..1a0e2e4342ad8 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -3690,7 +3690,7 @@ int megasas_irqpoll(struct irq_poll *irqpoll, int budget) instance = irq_ctx->instance; if (irq_ctx->irq_line_enable) { - disable_irq(irq_ctx->os_irq); + disable_irq_nosync(irq_ctx->os_irq); irq_ctx->irq_line_enable = false; } -- 2.25.1