Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5388304rwj; Wed, 21 Dec 2022 01:49:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXvv1PEwPJEmZtr56kyLhCNll/TacU6IPamvA+j7Wd/oND8DwuEyNtnjN33Iobk+ln2raDJG X-Received: by 2002:aa7:9154:0:b0:57a:7140:84ae with SMTP id 20-20020aa79154000000b0057a714084aemr1589635pfi.9.1671616181347; Wed, 21 Dec 2022 01:49:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671616181; cv=pass; d=google.com; s=arc-20160816; b=eZVClhMee7fCCFxFr3CFmb95sRGZb0nT4LnqTtb9NvUJZhXG/O7Kw+wl5sIBa8byri GHnvCad1i/IRy9+ynPeXxkxJSIHNR0AnFkLna9XjwtoQ5aopdb2YKAOK5DhlUACI9rZa t1cesJE1/a+3wqqyut5H3k5ipZbP0bKrHboydImJaoEsX5/bwrSwOTjRBjhCq7ATEjKy KEIQiJwrVtRdrI1Z8aMBr0TKudRdRYaL3xAOgwLWy7PdL05vcWubPmglqxTAdfOK20Ff wVuYmHFY/QJG/2dIfDGqC8cNyvVt1DJwOuHUhoB7Bdke9+FokVATNNUo2z8JjAQO5tEE RU6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:content-language:references:cc:to :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=cP7C9trSn6+Q/W5Nqf5G2qG9chsEYcA5kOC/cZPbCIc=; b=KdioXSv/it1OIUdFrDJ93grC6U5j+4CAphZDF9LqwwqKrSj3yyptOfMHUmJBsw3dUC 6vu/hoXkj7+56pO93M0TpfsIZuAU9ifrIt6EQIvvUBbQYWFRuOojSP7IR6NOqRBib0LW 6fu/f3cEqP/pyz1gusui8gJWK/8jstBanntDmv5OcehuEjrduvS4t/dL8LrwUTEw41do wyJ3TG8Ykg5uZTGc0HwSqxq8fzMdRiu0q/09YZsnQzCh4nNVGvRTJoKjL8YiKv9yc7rl dpCS3LdpSkURnowWAaFkyBYLK1z8oWWhkXTUci3r6Ahm6Q/fxpXm/Aqr4KDp01biNxOO n2zA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b="T/9S8anf"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ej2s7AdU; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020a056a00234a00b0057fd681788asi8412134pfj.225.2022.12.21.01.49.32; Wed, 21 Dec 2022 01:49:41 -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; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b="T/9S8anf"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ej2s7AdU; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234589AbiLUJnm (ORCPT + 69 others); Wed, 21 Dec 2022 04:43:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbiLUJng (ORCPT ); Wed, 21 Dec 2022 04:43:36 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AECBE1EEEB; Wed, 21 Dec 2022 01:43:34 -0800 (PST) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BL9WPsR011086; Wed, 21 Dec 2022 09:40:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=cP7C9trSn6+Q/W5Nqf5G2qG9chsEYcA5kOC/cZPbCIc=; b=T/9S8anfM0wSspMqnC6xBlFIjQqX8ZPOcwoPDgSVb4rJWvhl6wuhc5XrDBWOgMglkUDn BVUcNNkm1u0ws+CpzDFgFBcmuDHRyXRkKdPiKxzG3bMSyvlkgNLnakKv+NbAq9fi14nQ wEfio/pHSC+rzdtddtYEVKcXUY3xPlIqju76Yh0QG8t4AoHiqQfRPaBJF2BkxaecpZkv U81QJvlY6BVV0DeAhDSgrKd9EucGvlh/UKN7/92RLf+LaTBgqluRmMYsc0HvXD28OewF hKt11PmRCJduj0ihsPUhu3jduRVgKIhJ+EDS+3CscmOs9Y0gBFZ/6fTcR9qZvrefnJi3 Xg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mh6tn0dq9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Dec 2022 09:40:53 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2BL8wogG009669; Wed, 21 Dec 2022 09:40:52 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2173.outbound.protection.outlook.com [104.47.56.173]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mh47cq4xc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Dec 2022 09:40:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FopP24jSfQggrygEyPtUczzBr6PZLsq/FXE4ilhHKKnTkmsFzQJFLKIlbXSsOojpD6yVECXikabHo1R+pKBnXPfuZrjAQYqvFbugjvtzpe7rYSRr3+WKqs5hF1xQKRGpsvC5pttVFpDM1DhrMPTXmEMkOlXn9109yoqkwGKDpzRPTtHLgyknlRt0vwVvGBQasI0gE39affAhYLEcOOsyVdIidrxLqHwSOcTaIUneZOSJOERK6ayDwcvM2SX8K7XvaPjhCF64vB3ftFRROpm9ueyXnxjCMvaInJaorsj6Rc3fLmX3UcuLzXhFY0WaY3tnI28OFqhOWZUlgvA+YDJCkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cP7C9trSn6+Q/W5Nqf5G2qG9chsEYcA5kOC/cZPbCIc=; b=OPRfEPEOpscZrIqj+5dKLPAceKVlbvc6tbc7X1Nt02Pqjss5kMYcxzUmSg+6wqLCHbnHd040tjQlC9hnjL1wD+2l55bxfeiVpweFrt+PSk7rDjqfamaqWtpvp2kaxq8zvUx1EPT5qH10z1G3Kr6xk37YRG/g/Vodzx6js45IKkLGT+UbJnF7EtvVVrU7W0ABOyq5zLR/0sZ9G/11km9NQS5bJHlEZ874y9/UlDodeNbUf7Vh5YU1xtx3yJC7k05J8wfbr2jnr0PAeHaqeyY+q/q+X0dlQuUiKHQzsmIZh7bqmQW3eju+5ZaxIQ7d82Fi7A3medx47z+YdzTDkefIKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cP7C9trSn6+Q/W5Nqf5G2qG9chsEYcA5kOC/cZPbCIc=; b=ej2s7AdUZEs96sBBvD8H1ozKry2sEiYyxuUqjzhzK2ZOfdPcDuznk2vWw3Wh0nl/6HdQ1QC/E0CdPIM0cHK3MFXspBdpob+8J9kxPXn9/SjLfiba3tN9mZpKfUHX6PXC2wjgl/mBhpS88Z2LA0eET2owxu0wHlwraaFNmcKND5w= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by MW4PR10MB6679.namprd10.prod.outlook.com (2603:10b6:303:227::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Wed, 21 Dec 2022 09:40:50 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::1040:f0e3:c129:cff]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::1040:f0e3:c129:cff%6]) with mapi id 15.20.5924.016; Wed, 21 Dec 2022 09:40:49 +0000 Message-ID: Date: Wed, 21 Dec 2022 09:40:42 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH V2] scsi: libsas: Directly kick-off EH when ATA device fell off To: Jason Yan , yangxingui , jejb@linux.ibm.com, martin.petersen@oracle.com, damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, hare@suse.com, hch@lst.de Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, prime.zeng@hisilicon.com, kangfenglong@huawei.com References: <20221216100327.7386-1-yangxingui@huawei.com> <565fcf28-ec53-8d74-00a3-94be8e5b60e4@oracle.com> <9b8da72d-f251-9c1b-0727-28254d7007c3@oracle.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0411.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:189::20) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|MW4PR10MB6679:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d6fa0de-9405-45b3-da65-08dae337715a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nRXJHdGzquaF7ltg770JN8fpw9uH+WWnDqixDQIiNDVoRafoZBRuWPhWixXN4hCNG/LJYkZa7cNvrolqCOyeVc+fNr92bG4bJWgU1RRRPNy959IVAiQatCGbEe0YrZ1VvRSBzm/j1RQwlj+nPqQrVxXCnLHQBgHju6Z6GBHZ3sQw6tpyLxsvRozuHzHESpVWXDcBRzU3rdxK/kVwbX5rJmYH4QO7LWvirAj/VNf/g8R7LvKg/ccYvztpKKPMDaMecDLz75GhK6LCCbJRJLMDVpq7mcWMMwwUl1JoDL9zgsC/USOn7RNNvAtzEXKx+JBBExUV53tLhyisygXFCiIcDG6bWwZiZxRnxA1BVnzgWM9Pn/V4CHNwp1v4wxK7JKpY3JRZrwgEdmzATo4TG0mhTW2bJ5Y7PxVf0hKgV5p976DO5ZX4/dYG78O73AsYKJhhDoesFi899Q1gC8onk3OJlE0dv+RYp+ynoxpmObhEcZMzcG1k7sORoqkJiH2Dpav8Py27dmauKFK7vdRHCLnSIkmK6FbTgUjRWA75dibKciXvB48uNmGbboDd9cMlhTMG2VaefPFEQ4NfYkvgFuDJeoQbYdFzzxJJLkgrbPl7rLTTA+9I7u52SiRXmKuZw3Ss6Hr89pLHaKXVqrXifrIHSU7qynNVznSLuCFKODT3H5cgL2PGHDRr0fgOysBeSqntmeZVtFNde6aM1ai7DBQH/XD2gPceatnJE5HHbHnHoss= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(39860400002)(346002)(376002)(396003)(366004)(451199015)(2906002)(53546011)(6506007)(36916002)(316002)(7416002)(6486002)(478600001)(110136005)(38100700002)(4326008)(8676002)(66556008)(36756003)(66946007)(86362001)(66476007)(2616005)(31696002)(31686004)(83380400001)(66899015)(6666004)(8936002)(6512007)(5660300002)(186003)(26005)(41300700001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bDlHcXBaa3RnUGdSMUt2MUpZVng0V0JDL3JBNHBQSFhFL0FTYit4MDVkY1pK?= =?utf-8?B?U1JTN1FZNTdjcFl3WnNVejJBTXZGVUNTRkQwSGRzSVJVSnB0dlRIeTZMTk4r?= =?utf-8?B?VzE1aTJab1QzYWQ1NCtFUEc0NUFTV1VkQXhySkk5SndNbitpK0FSTnNmZkhX?= =?utf-8?B?WURINldzeThZcUxESUg5RjljYVhkajA3OTdBUzJ3TTY0aGtUekVYRUtaamky?= =?utf-8?B?NXpjWDROVitvUEpJakVU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QnlRbFkwNExi?= =?utf-8?B?bGJsSllSOXJKRnpkdTRWallmWEV6bUNpcERGN3FubmI3Sm9vdmtrckh6ckJI?= =?utf-8?B?RkJQbkhZMFdrMmZSRXdiNWlCSDBma1FTTGtsUzdraUdhU2JKSjZwbG5tc3Fu?= =?utf-8?B?bkE9PQ==?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d6fa0de-9405-45b3-da65-08dae337715a X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2022 09:40:49.2707 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UHxeV7ogC5KilcPQf9wUkcIfQtkuIazAwDjWJbVZkKHdWtBqB0hAI+FHNy9cPDlpRrKUoJ+hDUWCeDx1zW5tkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB6679 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-21_04,2022-12-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 adultscore=0 phishscore=0 mlxlogscore=890 bulkscore=0 malwarescore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212210076 X-Proofpoint-ORIG-GUID: GZI_XEkqX_2lfmP2Cp6LNBV1l_wiQuxi X-Proofpoint-GUID: GZI_XEkqX_2lfmP2Cp6LNBV1l_wiQuxi X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 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. Thanks, John