Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1921302rwj; Sun, 18 Dec 2022 18:41:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7dFNhtrUzCxFd2rqzekwSBm+p03n/pp67+lFCZfhCEv48gsIzGSYXFM152GabCUh0L/AZ2 X-Received: by 2002:a17:906:f841:b0:7ad:88f8:7663 with SMTP id ks1-20020a170906f84100b007ad88f87663mr35795939ejb.43.1671417678172; Sun, 18 Dec 2022 18:41:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671417678; cv=none; d=google.com; s=arc-20160816; b=C7biyozE7D4KBwm+q/gT0TvlWyAIPnHv5SkbCNSfDk55RLBXrJOGd4ybFDV0Uv8F9p jjD1YGsXJNhdTjNgQw+BV8Y2T6hXcEXy8FiwzAu+EagHPzsxwDembtXmOra4w7PL162L K07vAodcejUnVFST3HnpaKx5yBJ6Gq7wLSaKZpmAFSA9qkdlrquOHzHhQ4ZLW2QhDRIo 6UAYZxpFRSnL8f5RW1zXM/lpMQNnOYh8iTSU51KDkFHFVTvxJOVlX/sIeUjNLyHHPIB3 XCTwlWss0FffsaF5eVhjkuHtBprEyHcbrCH4ciGKkpO1vb/xR+ogdmH4MNql1wjtJAGt BFig== 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=VaWuMVSokzNwh6dGwEcrge4Hil4MITS7hLc8nAfmgOM=; b=R7fpb7gWZq7Qkhblm0Y4McErV84dUqDNtdI3VW44jGiqcSgZ5zgPEvReQt0go+xdQt Vdu91+aDtQcILneYEXww3ol08rYKHUUvWz+MCu3rJD4y9xCW7+uSE1ohRzS8IICr6/ae 6wkBBcIXDuy07uodoTaf5kDPmknX5PSC9VAFiuZa8iVHn5WIz80HkIBbmazn/ozoblhb 4xz+onO4GXUR5omqqgDaxO4b1bhhOfzP0Wy6q5D+pupbLjE4nW+z0ohxi9l/K1cS+L/L EZP2/aw/m9vaEyBDKLcssL6tKRN9xXslcFOU1/JL8ur7+2gMUJ9zg9dvsjY6Q7t3dmIt GqvQ== 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 ga41-20020a1709070c2900b0078e1d1d6005si7947664ejc.23.2022.12.18.18.41.01; Sun, 18 Dec 2022 18:41:18 -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 S230494AbiLSCTv (ORCPT + 71 others); Sun, 18 Dec 2022 21:19:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiLSCTs (ORCPT ); Sun, 18 Dec 2022 21:19:48 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58738636B; Sun, 18 Dec 2022 18:19:47 -0800 (PST) Received: from canpemm500004.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Nb3KX1R3WzmWmj; Mon, 19 Dec 2022 10:18:40 +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; Mon, 19 Dec 2022 10:19:44 +0800 Subject: Re: [PATCH V2] scsi: libsas: Directly kick-off EH when ATA device fell off To: Xingui Yang , , , CC: , , , , References: <20221216100327.7386-1-yangxingui@huawei.com> From: Jason Yan Message-ID: Date: Mon, 19 Dec 2022 10:19:44 +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: <20221216100327.7386-1-yangxingui@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: dggems701-chm.china.huawei.com (10.3.19.178) 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/16 18:03, Xingui Yang wrote: > If the ATA device fell off, call sas_ata_device_link_abort() directly and > mark all outstanding QCs as failed and kick-off EH Immediately. This avoids > having to wait for block layer timeouts. > > Signed-off-by: Xingui Yang > --- > Changes to v1: > - Use dev_is_sata() to check ATA device type > drivers/scsi/libsas/sas_discover.c | 3 +++ > 1 file changed, 3 insertions(+) Looks good, Reviewed-by: Jason Yan