Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3372518rwb; Fri, 30 Sep 2022 02:35:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7P86DuI0usEDc+wJPzYL89qn7/L/pFY32iG/5D7UHsUVN+Wa0YKV9DoAS/Xk+ySgcfYFh5 X-Received: by 2002:a17:902:d355:b0:176:cd80:5b32 with SMTP id l21-20020a170902d35500b00176cd805b32mr8190632plk.68.1664530523048; Fri, 30 Sep 2022 02:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664530523; cv=none; d=google.com; s=arc-20160816; b=Y84Z+e2C+uDQ+rRsQI+f421aYwg+vUeLzjRhaGAb1jjBQKf4Bve4lW1NJ4u0iGUX6j aLjgMYri5YHpUfgLxYQCi8zyDPl4StekxLK+Ys/plNNGcBUCnZFSa2OVv6bt2PqkYhd2 DaQhZWYwnVQOlfkrj2AfFBGB0CutuJqRF6BhmTIBC4B8zu5xMcB6eegqa7Q0vbA/YXOo LBokPNyoNVFYwhsFx6ckWINA0IcGcl8LXmI1dBYAQc4danRZ+a/liInc/lTr6nxv1+eA KVtWF28bllq0DJ56HKCShyLZkg3oClZr3KKa06tJRMyHEHo6HQwQVoH1E0O8ulMjPhPU K+BQ== 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=Bm+p/gBUtvPCDDHuzf4c71tIGUFDBPbhP3yN79DQ2iU=; b=DBJdB8Dows6IAG9UxF/5SOUlVYn5RkWQ+ZvejO61RiFws4lFrRT/7JwRhgsPccVIyE Vp5clTDKiDlyIy1SIYwvPKKLFf0JN+txAZHwlmB6RfLsv/s077TVj1Jpnk5pbygMVP8q ekG47/JlsNQ+6wd4Q5psAP+l5EVHXtb+KKrFhw7RzZBLG09wQT8SFvBTzeGNLGH63fUB Xg9h/nogAnyMh7q6nWvWeKlxmGL4sho+i4WNRVxKW7jGY0YYAwLS+P4SL4fg+8m6abeD DjfjEQlxeqZcuDqmC9ApbilLqMpwADKIpXwMjAgRf+65G0LrGizdIkO7j9E24SONMV7T 81+A== 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 p11-20020a056a000b4b00b00544cbec6d3dsi449764pfo.327.2022.09.30.02.35.11; Fri, 30 Sep 2022 02:35: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 S231216AbiI3JXD (ORCPT + 99 others); Fri, 30 Sep 2022 05:23:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbiI3JXB (ORCPT ); Fri, 30 Sep 2022 05:23:01 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF194156C04; Fri, 30 Sep 2022 02:23:00 -0700 (PDT) Received: from canpemm500004.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Mf4Sc6rWxzpVGT; Fri, 30 Sep 2022 17:20:00 +0800 (CST) Received: from [10.174.179.14] (10.174.179.14) by canpemm500004.china.huawei.com (7.192.104.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 30 Sep 2022 17:22:58 +0800 Subject: Re: [PATCH v2 1/6] scsi: libsas: Add sas_task_find_rq() To: John Garry , , , , CC: , , , , , , References: <1664528184-162714-1-git-send-email-john.garry@huawei.com> <1664528184-162714-2-git-send-email-john.garry@huawei.com> From: Jason Yan Message-ID: <9c5e2261-cd65-5d4e-a384-fa78042947de@huawei.com> Date: Fri, 30 Sep 2022 17:22: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: <1664528184-162714-2-git-send-email-john.garry@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: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500004.china.huawei.com (7.192.104.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 2022/9/30 16:56, John Garry wrote: > blk-mq already provides a unique tag per request. Some libsas LLDDs - like > hisi_sas - already use this tag as the unique per-IO HW tag. > > Add a common function to provide the request associated with a sas_task > for all libsas LLDDs. > > Signed-off-by: John Garry > --- > include/scsi/libsas.h | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) Reviewed-by: Jason Yan