Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1753463pxm; Fri, 4 Mar 2022 02:50:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4okdKj7YJokKuuE83XzKATyLYEtybo+nX1OGb8lPrm9Mjz4Z39wttvNMTVM54yIjPsG/P X-Received: by 2002:a05:6402:f0b:b0:415:ec3c:68aa with SMTP id i11-20020a0564020f0b00b00415ec3c68aamr5426984eda.86.1646391031884; Fri, 04 Mar 2022 02:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646391031; cv=none; d=google.com; s=arc-20160816; b=BLxznpqLeZXFJ0wNHPHPdIjOahiO3v1X/wS8mjxAqEE0QL/JS7+WkllLenftK/FLvg Nx3HdwisezgEOGge1NrbQVyTYqkgCBeCCSamvdlHdEY4limGBKHHSUXAQgCdDtKH9FTW nusjgrCf0TfFTGEMDh62Rp8qMSb06zm5BNe4LbzVgPcWv5t0pmodkvjaB138tYSeA0Dg sl2xJX9VXWB6Bw+1orpc9Z5CNKACYf99bpsEVp+7FkXhP/wzUX3McHbecXxnbiqiK2A0 0vl3CF4Chw4c4iJ7ly3ARXzAr+7DY93QeXd38fSjciyDrAc5Z4pdlQ2DHcPgUONITbps VBtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=dexvUfN6TpDLzdl4ffg9yIyMhRRr6hpEGASFpJmuORU=; b=zHuj4CzqVG00ci4F80inYILiF4lgk+JeKyqCTEisMBPy8Xtg3r+bKwAHv2ZHW0esHf 5RoMIt5wW7HFkvepa9hKKYSuONDkUnQXtCHOh7x4kW96A6gA6VXVMSsJLn371iZeaAoU GspMSUzHG9Piur+36ahUuiyyEx120S7T04qf/GjnTzt69NGkSfgDDTMBJXQ2mg19vKAm gO+QCQ7ugjg6if3VRQOLvHAALwheqd5iKDhjw4o9ny7ESIASPE2GnZZKyfnBpWkqpu/4 dUYWG0aCe+1lG4kv68tA7bhRjBzlP9cGcpxdpt6x8lzsnMR9P2Pspu+8Cd3DXoOOZ+9x RAxw== 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 u1-20020a170906780100b006cd36a1eb21si2517730ejm.348.2022.03.04.02.49.55; Fri, 04 Mar 2022 02:50:31 -0800 (PST) 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 S237059AbiCDJeg (ORCPT + 99 others); Fri, 4 Mar 2022 04:34:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235842AbiCDJef (ORCPT ); Fri, 4 Mar 2022 04:34:35 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCC874990B; Fri, 4 Mar 2022 01:33:47 -0800 (PST) Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4K92gx2nNsz67kMk; Fri, 4 Mar 2022 17:32:29 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 4 Mar 2022 10:33:45 +0100 Received: from [10.47.95.117] (10.47.95.117) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 4 Mar 2022 09:33:43 +0000 Message-ID: <4b46e74b-4557-a133-3df8-57305d46375a@huawei.com> Date: Fri, 4 Mar 2022 09:33:46 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 1/4] scsi: libsas: Add sas_execute_internal_abort_single() To: Damien Le Moal , , , CC: , , , , , , , References: <1646309930-138960-1-git-send-email-john.garry@huawei.com> <1646309930-138960-2-git-send-email-john.garry@huawei.com> <1a868ac0-e5bb-7efb-c1f8-eda0b040f5db@opensource.wdc.com> From: John Garry In-Reply-To: <1a868ac0-e5bb-7efb-c1f8-eda0b040f5db@opensource.wdc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.95.117] X-ClientProxiedBy: lhreml734-chm.china.huawei.com (10.201.108.85) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 On 03/03/2022 16:31, Damien Le Moal wrote: >> + >> + wait_for_completion(&task->slow_task->completion); >> + res = TMF_RESP_FUNC_FAILED; >> + >> + /* Even if the internal abort timed out, return direct. */ >> + if (task->task_state_flags & SAS_TASK_STATE_ABORTED) { >> + pr_err("Internal abort: timeout %016llx\n", >> + SAS_ADDR(device->sas_addr)); >> + > Nit: blank line not needed here ? Ok, I can add it. Thanks, John > >> + res = -EIO; >> + break; >> + }