Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5453117rwj; Wed, 21 Dec 2022 02:56:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXtjLjJjaxwJr/12d3rnOAO7TDOvhM1GKwkCmfNfZdvKRjClMRXcU9a6lFboiB6HQ9iAmPCr X-Received: by 2002:a50:bb62:0:b0:46d:6efb:b47a with SMTP id y89-20020a50bb62000000b0046d6efbb47amr1066786ede.41.1671620162641; Wed, 21 Dec 2022 02:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671620162; cv=none; d=google.com; s=arc-20160816; b=sg3TFiBhMEVRh0u1Te/3as0YwZCs9EMO9k7aBTNXeIXPgvI/tzITWiRqIHQDhBcHaq T0hEruicJV46OZD2qVlcsq7e99yizxMdYua5cp4TeJWCmJCxZVX5jikVzFx0AaBTmc+x kL8DtaklJo90NWdMJrZE29Dd4bBu8NSSOT5zG7Lz02joZAsolwLjg0LY3+FSEibKA/VA d8qsFuoinGUW4jcHJebnJNGMt17dNQiiGb7FvxCfuHqIstOQAlwv0WJ3HXb1u3ECkbMm vI0nFhhlnvYa700ahFm4SyOhMUvFDZPh3VcP4qJI5doncGi6jem/T+vHQQmUKGbMiqQN uP3Q== 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=RGvQJ8TzFAmYYyKBChlruw4kkgFwpGzo02dhiNCNgcg=; b=QMjww/wN+bkVFVpXoEVMweW9VVa4WDXkL8+JsQyE+5ae9O7zIIp/Tglyqoz2Z54jUB A4bBKSqfAoQ2y9yTbRT1oxE+1zNtseDEFtROnJT0TyPxYbc2Cv6mW72uFH913ZeCv/xL U8f0EJmw1Tv3budxgTHflybhUnscPxUL5ca3Lt6+DWBvO7HPcvTltuOlToSJRVmeFFTs agNQcYQK8REJgZptuZM9YuVnpMj9c9wudbMyWdcaBpDAzNEJeYpaSZ0kU/SauE/Vjur4 NNaGlgnPlCwXV/zJPjZivpkbWRYAxzzUTh9ON3pBJA7RRRbRW2kozBn4goDeowMUsKdf uJmw== 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 a20-20020a05640213d400b00457ebe79577si12503773edx.623.2022.12.21.02.55.46; Wed, 21 Dec 2022 02:56:02 -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 S234553AbiLUKcI (ORCPT + 70 others); Wed, 21 Dec 2022 05:32:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234639AbiLUKag (ORCPT ); Wed, 21 Dec 2022 05:30:36 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ABED11A2D; Wed, 21 Dec 2022 02:29:07 -0800 (PST) Received: from canpemm500004.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NcV277063zJpDN; Wed, 21 Dec 2022 18:25:19 +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.34; Wed, 21 Dec 2022 18:29:04 +0800 Subject: Re: [PATCH V2] scsi: libsas: Directly kick-off EH when ATA device fell off To: John Garry , yangxingui , , , , , , CC: , , , , References: <20221216100327.7386-1-yangxingui@huawei.com> <565fcf28-ec53-8d74-00a3-94be8e5b60e4@oracle.com> <9b8da72d-f251-9c1b-0727-28254d7007c3@oracle.com> From: Jason Yan Message-ID: <0ec55896-a690-9aca-a85a-4e6584e27967@huawei.com> Date: Wed, 21 Dec 2022 18:29:04 +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: 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: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500004.china.huawei.com (7.192.104.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.3 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/12/21 17:40, John Garry wrote: > On 20/12/2022 09:49, Jason Yan wrote: >> >> Itering tagset in libsas is odd. > > Itering with block layer APIs is just a method to deal with each active > IO. However, libsas should not be aborting IO directly. It may provide > helper routines, but the LLDD should be dealing with aborting IO. > > > > > The question is, shall we implement the aborting from the driver side, > > such as what sas_ata_device_link_abort() do. Or shall we implement the > > aborting from the upper side(scsi middle layer or block layer), such as > > trigger block layer time out handler immediately after we found device > > is gone? > > As mentioned, aborting each IO should be the job of the LLDD. However, > just making the IO timeout will lead to EH kicking in earlier, and EH > will do usual per-IO handling in sas_eh_handle_sas_errors() that would > happen when the IO timesout normally - so what are we really gaining > here? Just EH kicks in earlier. But we still have the problem of all > other per-host IO being blocked while EH is active. This is not the same issue as I replied yesterday. https://lkml.org/lkml/2022/12/19/1034 Thanks, Jason