Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1743667pxm; Fri, 4 Mar 2022 02:35:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYXJJbCS64u8Ii5MbGdLL7WS0DzbjoV8ruqrlxSet/wSgJ8zHKc7Z/fSALSqiWZWhTOcaD X-Received: by 2002:a05:6402:84f:b0:412:d1ef:c7df with SMTP id b15-20020a056402084f00b00412d1efc7dfmr39131568edz.210.1646390157930; Fri, 04 Mar 2022 02:35:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646390157; cv=none; d=google.com; s=arc-20160816; b=0QUIYpyskRslLSQzJXyLxjEOe72f6gSBm2Buqdr5RHdUSMpzyaOgpN2BByWHvn/eSK iMr99QqTO8qcUNYOJc8csF29UmHzOTS0lNtve8eQnCNww//DAVcK61TdphjFEBPNTi3a UlH3tPORzrzsL9owKLupF4WcZIkS2w8YI+XA3TElXh8tH0kTlQqvD3YD/2bKqO2FBvDG +Nj2HGLFg9bFL9lCYEgnx3Q1wd3/uRp71TP5Pi3w7ab+Im6x8HsOl97Ff1mat8MdJ9W7 FBnb8EuzI4DWnnvHF7+e3FAbLGGjHl9Rgjf27A1o23sIS4Jx7Yl+ORFuV0fF7KPUkbCF /L3g== 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=90HCdcZ3eV0yEAPVTL5gB0yTzjGNZGbEtU/+90hejj4=; b=XHPSBp9E9RFM7xuY0cbJ6KuPIf5wsVMA9uSvogodq+xvp7vR3E/ALmJMckfnq9BkvG dkHJhi1Ylbfm/x7qiqXbzKxVe7NJdi8oFf2bVjz7svahqQWPAjjvWQyCQN4kvetC4BLu 5aSH2Jy0YyaSx3B16VcgmaMeeKXuxxvXkwdsgXiqX6vGfRgpmgied7Y5x0BRKbF8CFKf gKgR5Fz2H45hHesegTQREK5RKRCGgticFj8MbkhesmjYlNmw96gw+tJZeX5uXiXEm8uz byDz03Ekqb3Fk3kBxQbuef1ScfumZnVGVSCnST0/X35gCKiGjRExo61FMaoSFdUxYmEn CJXw== 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 hs16-20020a1709073e9000b006da9515c821si3025047ejc.592.2022.03.04.02.34.57; Fri, 04 Mar 2022 02:35:57 -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 S239389AbiCDJtF (ORCPT + 99 others); Fri, 4 Mar 2022 04:49:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239569AbiCDJsp (ORCPT ); Fri, 4 Mar 2022 04:48:45 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55AB44EA3D; Fri, 4 Mar 2022 01:47:56 -0800 (PST) Received: from fraeml704-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4K930G1dtrz681Y1; Fri, 4 Mar 2022 17:46:38 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml704-chm.china.huawei.com (10.206.15.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.21; Fri, 4 Mar 2022 10:47:53 +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:47:52 +0000 Message-ID: <43acb2b3-8bb0-48b7-2330-3cfad8ca748c@huawei.com> Date: Fri, 4 Mar 2022 09:47:57 +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 4/4] scsi: hisi_sas: Use libsas internal abort support To: Damien Le Moal , , , CC: , , , , , , , References: <1646309930-138960-1-git-send-email-john.garry@huawei.com> <1646309930-138960-5-git-send-email-john.garry@huawei.com> From: John Garry In-Reply-To: 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:42, Damien Le Moal wrote: >> - if (DEV_IS_GONE(sas_dev)) { >> - if (sas_dev) >> - dev_info(dev, "task prep: device %d not ready\n", >> - sas_dev->device_id); >> - else >> - dev_info(dev, "task prep: device %016llx not ready\n", >> - SAS_ADDR(device->sas_addr)); >> + if (DEV_IS_GONE(sas_dev)) { >> + if (sas_dev) >> + dev_info(dev, "task prep: device %d not ready\n", >> + sas_dev->device_id); >> + else >> + dev_info(dev, "task prep: device %016llx not ready\n", >> + SAS_ADDR(device->sas_addr)); >> > This blank line could be removed too, no ? I think that I might change this code to just use the 2nd print always. > >> - return -ECOMM; >> - } >> + return -ECOMM; >> + } >> >> - if (task->uldd_task) { >> - struct ata_queued_cmd *qc; >> + port = to_hisi_sas_port(sas_port); >> + if (!port->port_attached) { >> + dev_info(dev, "task prep: %s port%d not attach device\n", >> + dev_is_sata(device) ? "SATA/STP" : "SAS", >> + device->port->id); >> >> - if (dev_is_sata(device)) { >> - qc = task->uldd_task; >> - scmd = qc->scsicmd; >> - } else { >> - scmd = task->uldd_task; >> + return -ECOMM; > One tab too many for the indentation here, no ? Right, I'll fix it. Thanks, John