Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4580633rwb; Tue, 6 Sep 2022 09:24:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR4spEtE6UTyFtcNM/rHLkf0He/DEV0ocbW3bMeTRBA90dFG8GTevYOorgwa8Mfj1szBfCdN X-Received: by 2002:a05:6402:350b:b0:43e:f4be:c447 with SMTP id b11-20020a056402350b00b0043ef4bec447mr49289323edd.427.1662481496052; Tue, 06 Sep 2022 09:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662481496; cv=none; d=google.com; s=arc-20160816; b=hSR6hIy8/bLRrTDkv1EEYhHE3xhGTeWm0XG/roGXBzmIlxpPAgA/2kOE+8PJm3CG1V PZpfHpNKS4fZSlN8PoUxq093nBMJV6tHF3F4/g6q9f8F2oozOyBItd3CYNeUcCAub6j4 pyBMi92vSwBtbnb2j+viTJFSEk8piz9VVw4iaRx5g1/Gg4oFam6Zm+Vn4H7F7Y0Ji+7t +O5tTxCVYg1pPwRRIMBhvvmAJSL10rqa5pcLhWCIRh28EEFvEDxjqrs3t5+TRiamQvtM /oylQKB/evgOp96m0Bi2KNocvjdl/1n38adt6R0wuIPPMA2YiUzD/gpXSlXqPG43oTyt RFiQ== 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=84Th+u6nZA/aLxCrGTTffze2G7Xns5Wxp+W46IbwKUI=; b=YnL4ZTV6WQbHPXrQmF3DCJpcK7huZk11kG51ULEv1fSnfqRVMpJ4hR1ju0HQSXltNG AZrJY6OHSeyUYp3FiOAcNHv0zLAiXWLsuN5R/OtfwSb3xQXa6gMtbL4TzqiRKnYt424h GW+AykmsdLU7v1VhY0bVxr3KJhAGQv3qKWwNGr1azX4MEdN/6nI4i5GaLWvlWOBJ+R7p AGsv/pXRgAoGcesU8gBukppy2VYGX8p3xIcvwMiY6X6lA6Y6RaWBC9kw+Do1AxPpf7r3 s9QjOvFCVcpeYJFhrcJ8SjY2D5W28pzmoY4rNKA4UMA/gbGfPLPee1xme3gmuRESUQX8 3w9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a17090699c300b0076febee8f6csi643241ejn.886.2022.09.06.09.24.12; Tue, 06 Sep 2022 09:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238729AbiIFP5l (ORCPT + 99 others); Tue, 6 Sep 2022 11:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233902AbiIFPzo (ORCPT ); Tue, 6 Sep 2022 11:55:44 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B32432FFCC; Tue, 6 Sep 2022 08:14:50 -0700 (PDT) Received: from fraeml713-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MMTNR0xqgz67D3d; Tue, 6 Sep 2022 23:10:47 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml713-chm.china.huawei.com (10.206.15.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 6 Sep 2022 17:14:48 +0200 Received: from localhost.localdomain (10.69.192.58) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 6 Sep 2022 16:14:46 +0100 From: John Garry To: , , , CC: , , , , , John Garry Subject: [PATCH v3 4/6] scsi: hisi_sas: Don't issue ATA softreset in hisi_sas_abort_task() Date: Tue, 6 Sep 2022 23:08:08 +0800 Message-ID: <1662476890-15467-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1662476890-15467-1-git-send-email-john.garry@huawei.com> References: <1662476890-15467-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is not necessary to issue an ATA softreset in hisi_sas_abort_task(). This is because in the libsas EH scheme we will defer to ATA EH which will deal with any device reset during recovery. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 33af5b8dede2..2fe5290ac56c 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1598,13 +1598,16 @@ static int hisi_sas_abort_task(struct sas_task *task) } else if (task->task_proto & SAS_PROTOCOL_SATA || task->task_proto & SAS_PROTOCOL_STP) { if (task->dev->dev_type == SAS_SATA_DEV) { + struct hisi_sas_slot *slot = task->lldd_task; + + slot->task = NULL; rc = hisi_sas_internal_task_abort_dev(sas_dev, false); if (rc < 0) { dev_err(dev, "abort task: internal abort failed\n"); goto out; } hisi_sas_dereg_device(hisi_hba, device); - rc = hisi_sas_softreset_ata_disk(device); + rc = TMF_RESP_FUNC_COMPLETE; } } else if (task->lldd_task && task->task_proto & SAS_PROTOCOL_SMP) { /* SMP */ -- 2.35.3