Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3881054rwb; Sun, 30 Jul 2023 19:03:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlFZZy9MDv6N0S3+JxY2MZ1LTaXpTQFrLoZfxldJirRAGupaeylQ40H+NpA9T1pZxgGciCHq X-Received: by 2002:aa7:d145:0:b0:522:ab06:721c with SMTP id r5-20020aa7d145000000b00522ab06721cmr5803913edo.29.1690769003798; Sun, 30 Jul 2023 19:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690769003; cv=none; d=google.com; s=arc-20160816; b=mGDaOjp4jEJGG4Oz/Q3gsYtAg3rmwEUNuzX2y2zGUYNRzibYkji5Yjp11mG0ADlXwQ 6ty1Tpxddif3Ep7faAAfhBSAnwtpmVfPdRiJ1AnkH1W0BgdZHnMNOlu43MtMiAwr82Fb 8Z1pEPoYnOALqwY10WL+dDnXeSIyBPNpdiG0eRuGaP/IhEIB/2KJSrXxWcVuxX2uFKVT Eg1NuHWVR2ZXlcNcQyeDtECZM5pbRcS09KtIBmq+yQMvoNqjGTDnoocCqgNetCpmrnv8 eIwfV1kQatSFmmKepYQ8epZ4o0GGW21P1Mg7Cj0zPGqIyK5DxzQPyJidw42/sh1TkIF5 cv8Q== 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=TVkxWXti5dy5oYCz6l4BYvTqmchRWwFo5gAeSXeRPaM=; fh=QYrEpBVnMacKcAJznor091VnrJSZuX3pdICWSbScQsQ=; b=WFmXklkWT78Ld7GNjQIeUwiiyTa0T+Py7aY4qD1e7VXA31zTIu6pLs6rQ53oUfYjSX 31YT/wfHBcNvNRdDIHLwEL/AX4Q98Ma6wPqoFwsMMIEEPhtmOTcu922XTdQRo6tbxtPW Wud7Brd+xI4RCz85/sG2qkEtc7l7HX+IWQDhKJvCYk3DPC3o3n/IDbjv99gL5q1aLhQl ENCUfAqgG13buuRdndOnNB1bhlxvFJbcgWcP1qoHcB8XlAicTWRrX6X11exB0V/MLEuL sASMR6O79LV97C62nuqRfNm5RfqsAVp+KDHDU7kchb3gEf3zqRysegIzXmVyJNXHo77U YNWQ== 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 t8-20020a056402020800b005223ebc9b97si6140937edv.131.2023.07.30.19.03.00; Sun, 30 Jul 2023 19:03:23 -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 S229591AbjGaBoo (ORCPT + 99 others); Sun, 30 Jul 2023 21:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjGaBon (ORCPT ); Sun, 30 Jul 2023 21:44:43 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0547E57; Sun, 30 Jul 2023 18:44:41 -0700 (PDT) Received: from canpemm100004.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RDgxm2Pw0zrRww; Mon, 31 Jul 2023 09:43:40 +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 09:44:39 +0800 Subject: Re: [PATCH] scsi:libsas: Simplify sas_queue_reset and remove unused code To: Wenchao Hao , John Garry , "James E . J . Bottomley" , "Martin K . Petersen" , Damien Le Moal , , CC: References: <20230729102451.2452826-1-haowenchao2@huawei.com> From: Jason Yan Message-ID: <27bb586c-af75-c2da-1b07-02bfb08e5891@huawei.com> Date: Mon, 31 Jul 2023 09:44:39 +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: <20230729102451.2452826-1-haowenchao2@huawei.com> 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: dggems706-chm.china.huawei.com (10.3.19.183) 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 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