Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1714193pxf; Fri, 19 Mar 2021 13:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIdRE0cUYBKjOzrxkVei/VtMECGY+Yusjb4XaWtT5rdresBYrbvuUmob/8N9WZDipxYl9j X-Received: by 2002:a50:cdd1:: with SMTP id h17mr11898364edj.178.1616187329132; Fri, 19 Mar 2021 13:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616187329; cv=none; d=google.com; s=arc-20160816; b=cIZ1/8nT0aiFUtLaz/Z0FeybzOxj6wBDXcsEn+n+E+DsR47SAMi/AzmDzLf6hXQujp 0L0rusoGOYCIS0ZMjVLHnPK9XYNyGE/C0c8q18YGDOFZsPezlDCwASWa1RpiT6VH0cKv LBM281CtXX2fGZFEsHk/zsCPooFe6rp9PvENMW1/gbG54rvdOrM4lvSTl+Seiq3ArgbW J1qg+0Uarg8obIWn2xaVO5+Pybjv4qMaGLPilOrY4GK7oNgm8qG1jJoH6gvKd196kKRj RpLDUCYlEEDu2Hbau/4rxTBwjRT75tVN2ohGxPG/ZjhVfdJsk/RWAgK51iS03ScwnstB 8HBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tnFusXzx6sJTpHmQw01cJ2VLMwSVY4vqv2UYSf3JMEc=; b=koAK5i4b2QRI8QSuzt/NHStgcZ2FSm+5gHEr2CTWuLZJfIniO2v4baWzcm4iBOBH+r LI3KEcgO8DpBQjsHPGYeWgkbi088V7PzzcD19HevLH9q0/87CQEEvpVpbq7PbOUxCGdE fwXoPHXSyp24yvtz897IA1bZsrBdCibzDpQNs+Nfq5i5eJcNTok8meNTk9+7YLFZ3ZEd N2Nr+HPEjz3NH1ec8OnWq3dvdojLVzkZU744tf62nAO5vET2/e40GIktygNySX8RsNrX +xc3NyIhDdw6J3wvcHy3lOspxJSjjB31ySKQRR2/SRxhs9jWvLRI4ml4MQBjkTYHD4kL uQXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="r6b/XBa4"; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si4872107edd.122.2021.03.19.13.55.06; Fri, 19 Mar 2021 13:55:29 -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=@ibm.com header.s=pp1 header.b="r6b/XBa4"; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbhCSUvS (ORCPT + 99 others); Fri, 19 Mar 2021 16:51:18 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:18030 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230264AbhCSUun (ORCPT ); Fri, 19 Mar 2021 16:50:43 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12JKXJDf147972; Fri, 19 Mar 2021 16:50:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=tnFusXzx6sJTpHmQw01cJ2VLMwSVY4vqv2UYSf3JMEc=; b=r6b/XBa4tuTwh5AqH72VzgFzWqycrNm+kmsaK06/m/4Bhd4QWxjjaj/IWgpbRO1fwu+7 47F/u0KhftQNMpYscPeM/xMbD22WPyPGDy8T8RL0EmrW7GO3Dy/X7dLa5P8ZhNLnlJQB vihQeoLUXeTp0hcLUnveko4D2wXvagO9wy8GHDzuP12Ikodyb9y0btVE5cpsPDFfACsk mp4tXxOXJr31dLKZIjLVvdIVF10+9MAUd6Nu6wnClGmhThXnelPSX9RZiNSfB64PuF3L kcRV6uqxLk1vsT8cGqhSNsnPtvm92H/4usE9FrRmnMDgx1GuSytsfik8+fQRY1xpHE38 TQ== Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0b-001b2d01.pphosted.com with ESMTP id 37c10h1qx1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Mar 2021 16:50:33 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 12JKlD8m005150; Fri, 19 Mar 2021 20:50:32 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma04dal.us.ibm.com with ESMTP id 37a3gdbtu7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Mar 2021 20:50:32 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 12JKoV0019071434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Mar 2021 20:50:31 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 146AC6E04C; Fri, 19 Mar 2021 20:50:31 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B1E4E6E050; Fri, 19 Mar 2021 20:50:30 +0000 (GMT) Received: from vios4361.aus.stglabs.ibm.com (unknown [9.3.43.61]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 19 Mar 2021 20:50:30 +0000 (GMT) From: Tyrel Datwyler To: james.bottomley@hansenpartnership.com Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, brking@linux.ibm.com, Tyrel Datwyler Subject: [PATCH 0/2] Fix EH race and MQ support Date: Fri, 19 Mar 2021 14:50:27 -0600 Message-Id: <20210319205029.312969-1-tyreld@linux.ibm.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-19_10:2021-03-19,2021-03-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 malwarescore=0 bulkscore=0 clxscore=1015 suspectscore=0 mlxlogscore=999 adultscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103190140 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Second, during MQ enablement the ibmvfc_wait_for_ops helper used during EH to ensure commands were properely completed failed to be converted to check for commands on the sub-queues isntead of the primary CRQ. Tyrel Datwyler (2): ibmvfc: fix potential race in ibmvfc_wait_for_ops ibmvfc: make ibmvfc_wait_for_ops MQ aware drivers/scsi/ibmvscsi/ibmvfc.c | 67 +++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 13 deletions(-) -- 2.27.0