From patchwork Thu Aug 10 16:09:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 109827 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp2565079obb; Thu, 10 Aug 2017 08:47:07 -0700 (PDT) X-Received: by 10.99.109.77 with SMTP id i74mr12547325pgc.438.1502380027436; Thu, 10 Aug 2017 08:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502380027; cv=none; d=google.com; s=arc-20160816; b=dHFsN0CUTP+yhjMvREnSdAfjf7PzVR4UaWKhqsljlQPVdFkKKDMI7O+9o4pr+bnitt Vi8u/iaEbu0nSQMLYr2YsnDLbic4AHjucxHjj36Hvm6uKqgdM282aRZtrhfKXeUABA7m 6YSXOTXa7RXlgHzs1PVS6IkXzzfWWe9Cw6oyBr1gtRxkqpX9k923ylbTbS0bAWWr8sD1 UxkItvshvGP2kgLMD/atdz8Pfn5qPHl0G/Cg60aWycBlf2ML8WkCs7dj3zx5/sK+TZ9C rJeJkQGdEXTd2R+sAWaNs8q1NzE2liCjX81Pm6D3lD7wt8PikZP71TVO5Yf9p2XSGzc+ PPqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=VQDUKImHH6ncfAYTrofca2eJHPjtjIBGUt6KF9A93J4=; b=tlMa7mfDnSeHC2WHB104CL8qFW1GpKHtUNQPqPppolBRMlZCZbbhRLYIZv1GKUU4NC f/wyZ3UwFjcqj3khJRltSrPLy+pOwG25pDUdEvZZinGBQnmXuW01X7O5i86wlMMT4lcl JH0kuiArYes9s7y/PyFFEjvhtg4tF5Af0yev7JNwkA7gLO7M87VNT3KFTN2uxoDDNbLl pNaNIe8U1LPS2lrdGLdITObo0C0C4mMq48uE3cQzMrBsYGfceYFUdy/R0dyxDLCP3j8+ Kcl0AkIIK25F8UUUrxQPWZdsLo1qzWdAbiquAj9800wtGnA2Ul7loHmqvPrcIJPDftp3 MFGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i28si4323259pfk.84.2017.08.10.08.47.06; Thu, 10 Aug 2017 08:47:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753285AbdHJPqf (ORCPT + 25 others); Thu, 10 Aug 2017 11:46:35 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3493 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752928AbdHJPmx (ORCPT ); Thu, 10 Aug 2017 11:42:53 -0400 Received: from 172.30.72.58 (EHLO DGGEMS402-HUB.china.huawei.com) ([172.30.72.58]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DEV99171; Thu, 10 Aug 2017 23:42:50 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.301.0; Thu, 10 Aug 2017 23:42:39 +0800 From: John Garry To: , CC: , , , , Xiang Chen , John Garry Subject: [PATCH 13/19] scsi: hisi_sas: kill tasklet when destroying irq in v3 hw Date: Fri, 11 Aug 2017 00:09:38 +0800 Message-ID: <1502381384-219889-14-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502381384-219889-1-git-send-email-john.garry@huawei.com> References: <1502381384-219889-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.598C7EFB.0003, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f4c4f8be62a79427985733d61f7f2f3c Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen This patch adds calls to kill CQ takslets v3 hw during probe failure. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 1 + 1 file changed, 1 insertion(+) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index a8bd557..992ccc2 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -1802,6 +1802,7 @@ static int hisi_sas_v3_init(struct hisi_hba *hisi_hba) struct hisi_sas_cq *cq = &hisi_hba->cq[i]; free_irq(pci_irq_vector(pdev, i+16), cq); + tasklet_kill(&cq->tasklet); } pci_free_irq_vectors(pdev); }