Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3917997rwb; Sun, 30 Jul 2023 20:05:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHiIUAnkAVz2dSSivfsLIspgXqwav99AlDaHbXHbbiWdezcnGgCt+QDJRRBcliHZ0AXiY+T X-Received: by 2002:a2e:7807:0:b0:2b4:6eb0:2a27 with SMTP id t7-20020a2e7807000000b002b46eb02a27mr5344236ljc.17.1690772713470; Sun, 30 Jul 2023 20:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690772713; cv=none; d=google.com; s=arc-20160816; b=IaoRWBTOFVQEbkaBQEqptBI3TABVirzDz4m4jHgg16df9kUNX5nMfGbLd0qHgJcIso 3LBCabuTAhglv/O/k0fc7K8Lkvj3wvEOczRO4l1Pn4NwdqQBK2MM18zINYryI4At4L/g xkxbq4b6+FvmAFbCTB6q/c9IkwSzuT6t4voHXYySh2LnAyRjB9Hjl5y6H495nyYZgYmF NNXX8edeeZO+KSnjNvCGIAhwe0dao0E/8ZzfiA6uQofV+sZYJ/daQygVB5uzU7h64MGR z3XLE/SLpX51SzX3K1VrLzO0eIpqx7kTl6AkbbzF7Fg5zMVx3hNPpPRy1wy1gb3SkqUR uHIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=z5Bk94O60Wu/Ynfj+7y9Ir5GgkrdpJ6G/Iv6t9DUVbc=; fh=Q0skJQWsVPInkOM7cgOIC0LlcTxcleb5+QjRaFP766c=; b=WvvlPZZa8gDOZA03rUtceDcQriPDdEiTjxepAsCCWgJg1p88MVZXp9AVgE8STyo90I VuXeUVyZGWwjAbAb/WFL6PdPe/QexYEAGguWF3/HWXVk7xLPToO4dixnWjn1RiaF0Hc4 Vehb1vHJk25pu2hodn3Hcv32SVsFphxN70aiJE1w7plSd7PpQd2Ee/TWUJ11lPUdGj+V iOSFjB4gRbctV9HNoxLLcqYQinKZ6SMGpDx5HLNv7dsSVBkIuSc10scyF9KiSpgSf9ML llW9Q/cSd1v/3oZEMW1LO+FjUS9JJEC523xTTMxd8uScocf/P19VcjBt5IurIxNqJ1tD V+ig== 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 y19-20020a1709064b1300b0098e07395330si6220896eju.746.2023.07.30.20.04.48; Sun, 30 Jul 2023 20:05:13 -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 S229538AbjGaCbF (ORCPT + 99 others); Sun, 30 Jul 2023 22:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbjGaCbE (ORCPT ); Sun, 30 Jul 2023 22:31:04 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3AE910D7; Sun, 30 Jul 2023 19:31:01 -0700 (PDT) Received: from canpemm100004.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RDhzC6NRnzrS1F; Mon, 31 Jul 2023 10:29:59 +0800 (CST) Received: from [10.174.179.14] (10.174.179.14) by canpemm100004.china.huawei.com (7.192.105.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 31 Jul 2023 10:30:59 +0800 Subject: Re: [PATCH] scsi:libsas: Simplify sas_queue_reset and remove unused code To: Damien Le Moal , Wenchao Hao , John Garry , "James E . J . Bottomley" , "Martin K . Petersen" , , CC: References: <20230729102451.2452826-1-haowenchao2@huawei.com> <27bb586c-af75-c2da-1b07-02bfb08e5891@huawei.com> <7fe583de-966e-1e86-3233-556886c943d1@kernel.org> From: Jason Yan Message-ID: <88541988-0e57-3789-b560-32f349bf2c0f@huawei.com> Date: Mon, 31 Jul 2023 10:30:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <7fe583de-966e-1e86-3233-556886c943d1@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.14] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm100004.china.huawei.com (7.192.105.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,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 2023/7/31 10:05, Damien Le Moal wrote: > On 7/31/23 10:44, Jason Yan wrote: >> Hi Wenchao, >> >> On 2023/7/29 18:24, Wenchao Hao wrote: >>> sas_queue_reset is always called with param "wait" set to 0, so >>> remove it from this function's param list. And remove unused >>> function sas_wait_eh. >> >> I did not find any users passing '1' to sas_queue_reset() in the git >> history. It seems it is never used. So It's ok to remove it, I guess. >> >> Just one nit, there should be a blank between "scsi:" and "libsas" in >> the subject: >> >> scsi: libsas: Simplify sas_queue_reset and remove unused code >> >> Otherwise looks good to me: >> Reviewed-by: Jason Yan > > Yeah, code wise, it looks good. > However, I am seeing issues with completions for commands that use command > duration limits. There are some unusual completions that needs special handling > with CDL (e.g. some aborted commands can be notified with a success and > sense-data-available-bit set. For these, we kick libata-EH but it seems that > this is not well working with libsas. So I wonder if this code may need to be > used for CDL... So let's please hold on before applying this. Let me check the > CDL issues I am seeing first. > Sure. It's just a cleanup. Let's hold on until it is confirmed. Thanks, Jason