From patchwork Tue Oct 24 15:51:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 116956 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5913176qgn; Tue, 24 Oct 2017 08:06:00 -0700 (PDT) X-Google-Smtp-Source: ABhQp+R4TjSy6Nqh5YqEVx4auRoFfCpjRioYEf/wqC1fwT+oTtxODo+oFB+DKO8laGXVmXh0rDsp X-Received: by 10.101.92.66 with SMTP id v2mr12414341pgr.151.1508857560642; Tue, 24 Oct 2017 08:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508857560; cv=none; d=google.com; s=arc-20160816; b=A4X7xO2SIg2V+mFb0ejYm0HvdRNKt1mqzRUyFGTal0lFTgtTc7SHb8fs+Li95cDjbq WFL6HhCEd1xChSKybk/WMCWWpb334J9DUJPGDVIf/WoSA1nIZei0Mmrom81ZAcyDmwOJ em0nqsX3jgWhrIq5fJ+qtavU7yZN5zr1nADtG1dCLPr+ZurXjO8lj6mpT+oqNID7tMfQ tiUHoyh0LThys+qMVXogucS64OTy98dV0fjnxabIlTgoDlso7xcCYS+HBnDmQuLxCgex ZT/oK2cqRvf3HOUE5KQine3gkdI7l+4JyAVw03uApN/qgay6sQ6zKZg8PTVcP90OwP2U fN/w== 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=j/6MfGOsat2pDSCP3t6PtjIyNjBdnOR5aYMiu3uJQGE=; b=GJISxKEKomYp4KbqQX1LBmH/Xga1Ppj6Dj/mDo+UtqPNqloe7HlrpBlExzmJsFXCK8 gdoqn0jWzNvvObo/qhfzEkalaTfRqef546EHThTXdTo0KmFfWuuTJvYsOs8I55OMK66H p8MubF32HkrYlvYKf5JPsqiv9/AlxBhN+0LQlcirvGGABfEomFFKPjyqXFYsMIzd0qUz vENhJ4GcrGYjyf1H3777h5fiJb/DGiIEDCLdfP5xpcceqXQeb97bvoFLr6vkRvMouLea 73tap+XEH16aaLx1FYIeXr6Wrd7ibv4r/mZgg8LWtReS5/kbtH0Ji5VJoPrRiEbW5Q+I y3OA== 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 m68si323969pfm.585.2017.10.24.08.06.00; Tue, 24 Oct 2017 08:06:00 -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 S1751854AbdJXPF6 (ORCPT + 27 others); Tue, 24 Oct 2017 11:05:58 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:50596 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932221AbdJXPFa (ORCPT ); Tue, 24 Oct 2017 11:05:30 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 6C1AF50470BB4; Tue, 24 Oct 2017 23:05:23 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Tue, 24 Oct 2017 23:05:15 +0800 From: John Garry To: , CC: , , , , Xiang Chen , John Garry Subject: [PATCH 02/19] scsi: hisi_sas: fix internal abort slot timeout bug Date: Tue, 24 Oct 2017 23:51:32 +0800 Message-ID: <1508860309-212397-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508860309-212397-1-git-send-email-john.garry@huawei.com> References: <1508860309-212397-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen When an internal abort times out in hisi_sas_internal_task_abort(), goto the exit label in and not go through the other task status checks. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 1 + 1 file changed, 1 insertion(+) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 9e29902..0eb9174 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1469,6 +1469,7 @@ static int hisi_sas_query_task(struct sas_task *task) if (slot) slot->task = NULL; dev_err(dev, "internal task abort: timeout.\n"); + goto exit; } }