Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4235156rwj; Tue, 20 Dec 2022 07:41:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4G8VrcspLBcpOywfW3+tsNxxN6obdMv9vlhVX9Nhhmg9HVKaV40SRyO286UDVLQKhHBMoD X-Received: by 2002:a17:907:778d:b0:7c0:dac7:36e8 with SMTP id ky13-20020a170907778d00b007c0dac736e8mr38383972ejc.67.1671550860677; Tue, 20 Dec 2022 07:41:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671550860; cv=pass; d=google.com; s=arc-20160816; b=ng2ZzzmHpmVQePrHm6gvgYR3AjSdwDk41qVZknI+O/nNGtJKhCiXkSVRbGg0ZvEsOu 0m9iZ1WtdAWi6paqJCQhxygkpuz7WexmpHrrvK2mdeWGM2yE7n0HXE2T8+ggzNij1Wnw dawrqYuoM5Mi4vpJzi3XkBJ/aKBruItyDjzCFHHxkS3vC2vUHo2U7O92C2irzObtcN/4 vpsvPSIEDRlWkx9w6gllHFhBxqwFqs6fRf5gaIaxMyAZ2yZDRBUgxT3x5GJVZGXR7RJJ dva/+YnOaX0UEAuy+k62bOCF/QJh611wclR4EvHHnL0jRYqoo/B+PxuGEQDqUmie2Aih 8suw== 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:references:cc:to:content-language :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=YcRdIzqBo9pgyN1Btk2XZERY1fhmKWO8ajpBVBOejQg=; b=JaHtKtzR3RDupTysa+lAusqkyZKKpxm64jlMzIKF3QlXgXVOL1P5T5rSYkCHWYBTFW 7uQ2R6KXCaspwfrtXWosgreRPM4t5ouFG4oGdXHYgYX4M9SFoZXD5fSFcwAxop5eVuQ4 X9pyd2R80I/87GSeqF5z/QbfCeO7o13Vi1BVDL45ytRc5hmnzXrEwT1lWm2PNb/WHDTI /YWe2rDT8c1ITcjJwcXLe07vMytKUQ+t4XQQ/USPBAvK41yXQEnNAtyFi2/IiBHwYHoc 7fQkVtKg85arTS52RrXLdO68hezNVOK5M2TUf20bLrVy+rjZuYPY6OaWgpFhYgnjJc8W PUEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=muDbdM0b; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="ts/Y9lP2"; 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 qk40-20020a1709077fa800b007c090dba7bcsi1249681ejc.210.2022.12.20.07.40.43; Tue, 20 Dec 2022 07:41:00 -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=muDbdM0b; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="ts/Y9lP2"; 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 S233881AbiLTO7t (ORCPT + 69 others); Tue, 20 Dec 2022 09:59:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232097AbiLTO7s (ORCPT ); Tue, 20 Dec 2022 09:59:48 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B882CF9; Tue, 20 Dec 2022 06:59:47 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BKDIloK019522; Tue, 20 Dec 2022 14:59:22 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=YcRdIzqBo9pgyN1Btk2XZERY1fhmKWO8ajpBVBOejQg=; b=muDbdM0bjIzMbaj2pHuqNZ7flfgdAqk5nL/U8LNnlCFtHBd3X4+DswoqYyx7idO2meJB L6nRUpmWhCoT1CnBIyp12WWBM9NpL+Ih7+JPuyBNYIczi3MT52/n4/LkGJG+snuSYAol o1BwQzg8LVu0d0DiHQukj3r7g0VMStPbiJ5oKZvzM+2kwNjW80pkL8giddz27aBhXXr2 vBUoh5xnPKTxS9zKANopPaJ0KvljXeXp1NOtEa6pOG/owtwUyS1IUflbZsT2SBxMI8Pa FqvMsvtF6OQyxQ3YGbHlx8QLhcKkQs9b8amU92r6Tq+g0C+MWcQ69/iSqdtsE/Gv0vC0 zw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mh6tm5y8a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Dec 2022 14:59:22 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2BKE6MIM004629; Tue, 20 Dec 2022 14:59:21 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2043.outbound.protection.outlook.com [104.47.73.43]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mh47bfmqm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Dec 2022 14:59:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W1WM+g6h6bwewLAiDnORymZ0k3ozpcXmDx3mwcMVzztIuMPyZqTwN66/n6Bf/yDcTINPhPqJTp9K2Bl/yJyIXb7GLF6QrHW1pXsvxYWZpEUjR/PuP2S2BsKtJJDzgRHFwkjBedMDLclxhDAC8JPqdmfN9MMINnbGkONFKn/+07SxYmHuC5gqvZVBlT1GVDY5kvWbLpmmb5lTbLI7fkRVxdlGhYVC7pAb9MNigUVojL+yGwrnfjXB31WIxkvXOzeaAozCjL3sNMtfeoYp/DtgcBKvtSKkcJ5hiPYKrmN2dB00cFyO54u93LOWSRBHN1lRrBxV5TcvrLK84wq5/kWasA== 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=YcRdIzqBo9pgyN1Btk2XZERY1fhmKWO8ajpBVBOejQg=; b=P4869/jwPMkOUpJt5tdGtgTIItxHD+eC0uvfVk1dTC2B+8DR7ZSHp2sEDHYzlu9kFUXeAovneDdeQiUJ8ZbZh32ly1T/ZzZQQoILZoq+SO/DUVze2Ny4BG70zgxgWA0azbR166f5QLu2gLNzxAL5wyg/yYiDKc+HtxisuSA+DQ8z3IboZxzkzF/YHeJjovUc7CdyY+CV56gzXYLDkYx8s+Eh3vNW/Bsq0ZIVkzV/tO/UV0kCDHa8Gsg8BcTf3J/tq1mPgDTH8IjuCRP4sx1c34IsJgzDTO5nRc/oxgKPdXcEW8GlZf0qW6gnAJaFy9meFKLsZsnS7WiHVUoWV7zTKw== 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=YcRdIzqBo9pgyN1Btk2XZERY1fhmKWO8ajpBVBOejQg=; b=ts/Y9lP2a4FTioHE8wmTROvfopoHWVRKAI3W6ECOQi5yvBWGuqunUNo3Fl+Xu65KOmQf00liayaSsUQrXcVOaJGiPHeutJpyScTvdsz4HM/C34Um6TuB+AHMfhpnD6EofHtZso4iQEUWT8J1Hke76khVSRreTyygl+VDXXdoPDs= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by CY8PR10MB6467.namprd10.prod.outlook.com (2603:10b6:930:61::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Tue, 20 Dec 2022 14:59:19 +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; Tue, 20 Dec 2022 14:59:19 +0000 Message-ID: <4ec9dbed-1758-d6b4-dc1d-ac42e8c22731@oracle.com> Date: Tue, 20 Dec 2022 14:59:14 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] scsi: libsas: Grab the host lock in sas_ata_device_link_abort() Content-Language: en-US To: Xingui Yang , jejb@linux.ibm.com, martin.petersen@oracle.com, niklas.cassel@wdc.com, damien.lemoal@opensource.wdc.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, prime.zeng@hisilicon.com, kangfenglong@huawei.com References: <20221220125349.45091-1-yangxingui@huawei.com> From: John Garry Organization: Oracle Corporation In-Reply-To: <20221220125349.45091-1-yangxingui@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0590.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:295::6) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|CY8PR10MB6467:EE_ X-MS-Office365-Filtering-Correlation-Id: 601fb6ca-e7e9-4f72-5d14-08dae29ac5ad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JnVFa3XrwOySPk7IXpV2uCqOKjqz+xhxE7XbW1boPMstGWzg9kJAeBA54IcfOTH4C2Lq2Un72WBfbfBZc/JZHSrFh7Q2qYKMRHpEzBuuxYXvvXH05cjQB5ihCGdh9OHiEu+Zwxl1agImccfyx546tHB4cNgLRTHixdenLvyRNk9jABGb3JWStVpSQzN0Gk3urIy11bjY4TcDiPMWJ3+7QhRDDe2CuXY4T/VXMjUBJ8n0lRNPKOZkiTWgEKrUepGIpba87qRohdAT3skIjleTADVZJpeFfaSpznmNeqxAGnB/THDlUi5vD7NHvJhD9QnTnRYMANIfgnQHHU3Jzf9CfswVV4FD3yar9b0kbNRujrPSmykdpPkOyxA+VlZcDPTOOGSO10gWMPaSxQ9+u5VyyIgJ+MxWwEsrVyrWns5su6OtvCBDtEtWwvw3l6I17hwavmr+5nCZrzrCXJrPdzB9KGmdvCox8+b/dUg/Bt/uPpPK/LKQKFwReKkqvhk2ZKjsGPF4gPGTeTC9zFYD3J0tQjMtCDyXu/iUKR+MKRWW2VISaNrXvPpIdSUodnddAPaCp36zt2pPingwbieZo640gKp02dwYKnDArD0swpeiB4Ghoz4KFEDp43rtssCt4Wx7iByLrWp/lcR3JJ6ezxyjpW6HJW6ZqmTbFCC6D7Sl0pYZn2YVUsn+gQ4SSEMV3NCB2jo2zLmdcB25iXnkhAi63iJraaugs4Og0xoexaE+86M= 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)(39860400002)(366004)(136003)(396003)(346002)(376002)(451199015)(36916002)(31696002)(2616005)(83380400001)(38100700002)(36756003)(6666004)(6486002)(478600001)(186003)(6512007)(5660300002)(53546011)(6506007)(26005)(86362001)(2906002)(66476007)(8676002)(4326008)(66946007)(66556008)(31686004)(8936002)(316002)(41300700001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Tlp0V0cvR1ZJeVQ3ZmtEN09aQ1FkMHdxQTFrV0RrSUZLUEtRakVGbjRiN09W?= =?utf-8?B?UFoySUZrUjBqSFh0SlQ2M3I4Qit0R3Y2RDZyZENBRDQ3ajdZdFhaNit0OW50?= =?utf-8?B?RGJ3dkFQd3h5NGRiZENHWjFnUExWdjlWdC9mcUhkc0xHNlc3M0c2TFRYL1hH?= =?utf-8?B?NjVTQU81SkFCc0VXNUpwdnpYSlFicWxhNEg1QklXRE9RdFdGSWw4L3Z1MExl?= =?utf-8?B?eU8za3ZZMUVZV1FXN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OU5QdkdzNlA0K2VPSVpWRVF4d1dEVUluZXExWFl4dHJGbnJzeDJNNUxt?= =?utf-8?Q?jxFgkZQAETS+sF3Z+/1Tg+ny8?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 601fb6ca-e7e9-4f72-5d14-08dae29ac5ad X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2022 14:59:19.7703 (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: jBouSxGxFCURhEzRjbSyMqsWzSJJe+jJft1unobkE5XJlWZDumbrUROA+Z/8utAuT5azsMzNHEpBEfpWhiiiRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6467 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-20_05,2022-12-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212200124 X-Proofpoint-GUID: RVDK7yXE_e3eYipk1jgVeiIaSZKcYApA X-Proofpoint-ORIG-GUID: RVDK7yXE_e3eYipk1jgVeiIaSZKcYApA X-Spam-Status: No, score=-4.0 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 12:53, Xingui Yang wrote: > Grab the host lock in sas_ata_device_link_abort() before calling This is should be the ata port lock, right? I know that the ata comments say differently. > ata_link_abort(), as the comment in ata_link_abort() mentions. > Can you please add a fixes tag? > Signed-off-by: Xingui Yang Reviewed-by: John Garry > --- > drivers/scsi/libsas/sas_ata.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c > index f7439bf9cdc6..4f2017b21e6d 100644 > --- a/drivers/scsi/libsas/sas_ata.c > +++ b/drivers/scsi/libsas/sas_ata.c > @@ -889,7 +889,9 @@ void sas_ata_device_link_abort(struct domain_device *device, bool force_reset) > { > struct ata_port *ap = device->sata_dev.ap; > struct ata_link *link = &ap->link; > + unsigned long flags; > > + spin_lock_irqsave(ap->lock, flags); > device->sata_dev.fis[2] = ATA_ERR | ATA_DRDY; /* tf status */ > device->sata_dev.fis[3] = ATA_ABORTED; /* tf error */ > > @@ -897,6 +899,7 @@ void sas_ata_device_link_abort(struct domain_device *device, bool force_reset) > if (force_reset) > link->eh_info.action |= ATA_EH_RESET; > ata_link_abort(link); > + spin_unlock_irqrestore(ap->lock, flags); > } > EXPORT_SYMBOL_GPL(sas_ata_device_link_abort); >