Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp59502pxf; Wed, 24 Mar 2021 21:00:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4+k1Kuh3mjVbHFzFdLXiXKXe/igjJJPBTVyfWSHRdel00J/4P4AEezC/DqgeCPAXMUxUb X-Received: by 2002:a17:906:379b:: with SMTP id n27mr7443752ejc.182.1616644840846; Wed, 24 Mar 2021 21:00:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616644840; cv=pass; d=google.com; s=arc-20160816; b=G9+u6vLHd2ACgJskhhsEqwfPFUCiX/j/mpvjutqs21RGlU0chxxFa0cGjm6hrBJAKn M89wSWBQ3Q+ZL+YU0VjXPIoht5lON8VmjsZs5XPjQzpQBayTE27zt2tJ2RCBFTjcUvMd HJTgR7+PThLN2Ka8Az/We4mb/87BUTPcpM31P8+1kmmEANppuiBWyH+RFOPNRHjITt5Q Ir9003XIYlE0ZkGSJyvzqbODGfX4B9yVjmtiSsl9lrb6eO17LLFLqDivieFpBZ5kkOIi HCJY158nwbrGZcufBnZZRpTe9AWu8iyq7e6CTmyZo7HEWkAP8/K5kAFhR8xeDIOu8WDB bJzQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=hiZkDQg53MM54IsjN13m+OxrhlBFcrlX6EZjSFDgANc=; b=rf1GNlQuE6bFFbZgEWT8FvuaZ8Q6tVZ2LuyNI6FEIfJWERlK2BTur0i7E3uji+OIn/ NWyj7z4x9NS3bp7440xa5inW/Cjc9ROFtnpk/MhKwAQdbjNmr1c4399UwYRwKuYhmoR+ v2lYZUWOrAUM5KhrbkOTt/R2A0NnaDBo6qN8+LDxEc3ZJPYBx3mssEeglubWjfF1uE6d OdB5ULJfcMwoXY0zYZVaU2YhINTfLgfyybw3BONyTuUz0vDtYttxb8pEvXrD0YOfYjFl 3ncTCtSb30z1rFFe0jpW3m+2+Va0SZ2YHUvk9JfgOEVRmaG89ZTZ/8293cwOdPgxbIx2 qeEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=bOEJPbM2; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qNIvVAHs; 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 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si3221939edb.10.2021.03.24.21.00.19; Wed, 24 Mar 2021 21:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=bOEJPbM2; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qNIvVAHs; 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 23.128.96.18 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 S230096AbhCYDyt (ORCPT + 99 others); Wed, 24 Mar 2021 23:54:49 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:38688 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbhCYDyb (ORCPT ); Wed, 24 Mar 2021 23:54:31 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12P3mYxX194876; Thu, 25 Mar 2021 03:54:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=hiZkDQg53MM54IsjN13m+OxrhlBFcrlX6EZjSFDgANc=; b=bOEJPbM2fwaWso/yxD8xUchvUG08uYE/Vl2gtMj2h8tXZpVoHzUw9OqBqYe03stqwBK6 RONHEYIMWRjdmFtYkzzTVoaAJhqiC8jIKkIZZd72Wd3FK4y+/R9ycwHdB/lm+V38HsIp vKg5sdCpwemfmVOnz4Jfx/YABZTPAsTn0RQDNa2nZXKyHlaL6ubKVdn3K3Snskt0uFbf C6jsNovj2/OG+PjIFv+fAwb5kDEx3TGgQaJzNFtIglY5hlrbKZaZdpK0jnw8wkc/+4Uc grNXS3VrDcDZBQrw15Gbz9iDaQhglCkc1xCHCAWj27Kz55hnOusUTsHbimxPqiEoLa6Z jA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 37d6jbn0yw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Mar 2021 03:54:00 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12P3pFgx134348; Thu, 25 Mar 2021 03:54:00 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2177.outbound.protection.outlook.com [104.47.55.177]) by aserp3030.oracle.com with ESMTP id 37dtmrmunn-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Mar 2021 03:54:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C1LzvQfsKINlP/UKhx4RgS1HE97fwLsGZ11fsRs0KYbvShmz8THBGyheN36Ilai7pSajugqiyMOZTfCEawn4cnhE3TFknZO1ZRGnGwRIQPFVleGX0pwaOB5o48fjp+LbkSSqry05gBtu881RTmIy5112c9aNotWmzhR1Qr7PENbBcI8dFt+FV387kPrk30UrRFt0iJ/Xnl6u3NZGGx+6SMp83bBgkEc+8gzyy6lU0ZgxfeC//Jg06ceakDbNMR/IFz4L3wA0y1U/Oa9kNH4jHfF8tQtySfWqRC60Z6LTLhqGwBSk7gXrZCMG2LlF1LNnUVYZfAvIZAFV/dRelylDjQ== 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-SenderADCheck; bh=hiZkDQg53MM54IsjN13m+OxrhlBFcrlX6EZjSFDgANc=; b=gBmFhD4KQ+X+UOexSiagQ0L6AhIuYzY+HnWOPPSVc9ZNgns4IU/XQ5tMBfLzozjn9XKAKgSz7gfvCBCCYFY/Ckrhq+eiUpo61OdJholuZQMNPgoGR/CQDa6CRCtNVxQquDZ7jD+otIN9l3wWacPnf/SIAQx7hG0sHY3xyi2/Af4orhH49lZTOzXGNyv9ND06jPMsM29TwVXl5LbvuVveI6EqQn4wzh+ioARP0JYfiWh5DefV8uVzxIOpAR871RWz1hcmlUsBHiMGffeTEFiggq0LPtaYIL6Pryc3yfTEos5WTa0IteEzpUoapcrVJ1zFNVWVf0GXMloQmgT4UECoNA== 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=hiZkDQg53MM54IsjN13m+OxrhlBFcrlX6EZjSFDgANc=; b=qNIvVAHsQtLHtwAhSh6rfbmP0DytwK7rfaYqph7IZG1qc/Mg6GOOE451sJ2oQb1oI06U+lMDi7B1sR2wJQUdoWNAumRGsxXSdwf6aYx37UEYXeBS0l2dRlM81IsbLdDKb/urzMI4twhpCe2vlbGo/pe9K6ZGyP5UFmmHsQtCdqA= Authentication-Results: linux.ibm.com; dkim=none (message not signed) header.d=none;linux.ibm.com; dmarc=none action=none header.from=oracle.com; Received: from PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) by PH0PR10MB4774.namprd10.prod.outlook.com (2603:10b6:510:3b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.24; Thu, 25 Mar 2021 03:53:59 +0000 Received: from PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::dc39:c9fa:7365:8c8e]) by PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::dc39:c9fa:7365:8c8e%5]) with mapi id 15.20.3977.025; Thu, 25 Mar 2021 03:53:59 +0000 From: "Martin K. Petersen" To: Tyrel Datwyler , james.bottomley@hansenpartnership.com Cc: "Martin K . Petersen" , brking@linux.ibm.com, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Fix EH race and MQ support Date: Wed, 24 Mar 2021 23:53:49 -0400 Message-Id: <161664413898.21300.158645434947164288.b4-ty@oracle.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210319205029.312969-1-tyreld@linux.ibm.com> References: <20210319205029.312969-1-tyreld@linux.ibm.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [138.3.201.9] X-ClientProxiedBy: CH2PR05CA0053.namprd05.prod.outlook.com (2603:10b6:610:38::30) To PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ca-mkp.mkp.ca.oracle.com (138.3.201.9) by CH2PR05CA0053.namprd05.prod.outlook.com (2603:10b6:610:38::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.10 via Frontend Transport; Thu, 25 Mar 2021 03:53:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df44e4f7-fccc-42a3-f313-08d8ef419ee7 X-MS-TrafficTypeDiagnostic: PH0PR10MB4774: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W4M9DLdUS5UKmMBaqv5PLuGCqTxwmfA9nx+p6Qkk19uPtdvOSc8dlOWU5ADDFysbQT7TGPjP8Jsx5/7iXSmUOfeiedTjwzeiClNs4/G5fTfoHAkVTDYPGwbKyiAPYwIcwkaQP4x3B2mXCTgMVrxoLO5FcBmMv7uy9orHNKKfQi7wL8OBwD/PYmYFwHATTuj6pe1+VrD11i0M7lEphtEB4a3C7iZv08oop4tkv5OS9Fx8tE556uNv0GXg2Pamkn2E9qnOolpuVQ16yAjX+VTQc17IaOLgtm/hfEV7Z023ru5uFiqFv3kcvNe5knuLJjYQU7rF113j3QnZZgaEO3htWHyFvw8L53gZTs+UvKYzrsEx7zMpLrTKbWrHDq4U8QvK3pmMMu953bdK8+4/n4L2RZKU74ugFgF1eM/wYiUYyrdoqSCBfGmHCy389scjg1HaZbIlNuDuo7Dle59VpbvQpTy3m1N+Y71kFKIYdFYPn7Lm1moEGqAz5RCPVWjhpzAt3OniVVsMAM85QAf7TMTVGmweo8RkhJMlB/+rVZCqxD1t4+THHY8jh8svYjcEwoEbMUhCeSXRCqaqjcUtOUEaFSdugt3QX0TuaYEvs8m/riIFV1tRzj7hkHaY4F7r5fwsObJF/p2EWGcR2yxukCF9IZAgmZQnqhFjD0k6alrUE/M0ycq22zxvUdSANGk4ZAf1ysHtoSSaPjiwJoGwaqoy5znOXoQgpBZOh05l676Ol90= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB4759.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(376002)(346002)(396003)(366004)(39860400002)(136003)(8676002)(4326008)(86362001)(103116003)(6666004)(36756003)(966005)(4744005)(38100700001)(8936002)(2616005)(2906002)(16526019)(186003)(66946007)(956004)(66556008)(26005)(316002)(52116002)(7696005)(83380400001)(66476007)(478600001)(5660300002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?UXFBVEtlQ1RYWWZCM3cxaG1FZXVZMkRHYjdFT2p6di9keDBDdDJ3SmpGZStP?= =?utf-8?B?SDd3cHpDSWdEczBhZURyeENLemoxYkViWTVLVlF1NEVoVHZnWWpubzh0NkUw?= =?utf-8?B?ejkydUh2ZU9zMTlJSzArQ0dLaGtGOXhSZDlNeUFpcXVQcjR4T0N4VittK2lD?= =?utf-8?B?aVFHZGFMUXZyeEZ3ZzNXTTRNSDJJVE9FazUzQzJoZVNKU05yVExFdFAvTUNS?= =?utf-8?B?M1NXZThBVHQ2YmlwcUdDc3RMOW85VzVMVURuRzRCU1hyTlhTUHpwRFdlQWRk?= =?utf-8?B?Q0V2RnV1QUtOV3lZb3Fqb0dZMnBIeEM2VmJpZkFNd0VLM09CWE4xbUZQNm9L?= =?utf-8?B?aU9ucFFzd0trYVZsRzdrTmRTcTh6UmRPT08zL0RKQzAwbkdXeGYrT1RrNElE?= =?utf-8?B?clEwVWpaVWhsMi85TkVhaGdHalBSVmp0TUR0cEcxeHdsMWpWUFV0ZFJDTDUr?= =?utf-8?B?UnIwZm94SjZTR0g5Yk9qYmM0WlE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IWE9zaUgvWjljeldhamNuSE5qbEgySjZHSWw4S002Nkdk?= =?utf-8?B?TjhvaWFjc1QxVmdnalJNeWd4NEd5Z1pzem9Lblp3WitqeDdvQ09URHQ1OFY1?= =?utf-8?B?aEtWWjd0cHdNdXlVZVNBSGhyaVZ5V0xtN28zZUVIeGlqeDBhd016dTJPQ1gw?= =?utf-8?B?VG42UVQ3dXRqUTRlQmFJRGtveWxMdHAwV1FTZWdqQjdnK2VjRkRVbEM1clcy?= =?utf-8?B?YnZWNFdFK0pCbHlkK2dJbHhaNFJwMXd5SGlueUdyS245bGNnVHg5WGhFQllo?= =?utf-8?B?TFB3VTNDZ3U0dCt0cHRtemhTVG0wWE4xM01Ia1l0RlFHaGd3R2tkNEJieS9x?= =?utf-8?Q?nyRzqB0O7f8dhI3kSn+MKPOOgwUG8xTBI+M2oku?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: df44e4f7-fccc-42a3-f313-08d8ef419ee7 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB4759.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2021 03:53:59.2890 (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: zVSaBMMgKWMmKyO4v/CUd2SaXvtUzLWQGpSr9nU5JmewIsOouZ6n70VrUM366c7IKDIp6jQAQGLije5xaj2AK6fuCe/KUMZ+0MXOuxTKVEU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4774 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9933 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103250026 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9933 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 spamscore=0 adultscore=0 impostorscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103250026 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Mar 2021 14:50:27 -0600, Tyrel Datwyler wrote: > Changes to the locking pattern protecting the event lists and handling of scsi > command completion introduced a race where an ouststanding command that EH is > waiting ifor to complete is no longer identifiable by being on the sent list, but > instead as a command that is not on the free list. This is a result of moving > commands to be completed off the sent list to a private list to be completed > outside the list lock. > > [...] Applied to 5.12/scsi-fixes, thanks! [1/2] ibmvfc: fix potential race in ibmvfc_wait_for_ops https://git.kernel.org/mkp/scsi/c/8b1c9b202549 [2/2] ibmvfc: make ibmvfc_wait_for_ops MQ aware https://git.kernel.org/mkp/scsi/c/62fc2661482b -- Martin K. Petersen Oracle Linux Engineering