From patchwork Fri Feb 9 23:52:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Harris X-Patchwork-Id: 13551990 Received: from mailout2.w2.samsung.com (mailout2.w2.samsung.com [211.189.100.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46AC737712; Fri, 9 Feb 2024 23:52:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.189.100.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707522733; cv=none; b=AUqdCUJTMVsOL/nVjMVNHx2vbGK7GiVr6gJAwfk7q1TYMYbJppypSdCjUVzrB3HGadpU+x6JXCuSawklvX2YkxpACNB2JuRy4AVw1/JwoeJHGr+7UYHKF96yEy65r2yEmZp5/PAiIE/MdWtOVtVQZejmKd4V0JhuVkpjArhLYc4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707522733; c=relaxed/simple; bh=gM8WcyxM0kyctkmXBtKgbCJjoJZPH+hDa6zePYZQYvA=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version: References; b=hCCRbCQ7rH8M4Fav7BKu2y1c5DVXsvCT1xNgv/g12lVaZLEkwqsR7AdJZRhak2LJnZiETCo/wqbjDL4lT44buDkPc41somn9FtrPlXJUVeEM8Ub+e+krjdkQUUGEXHuel9sAGSNWNEvuzbD1/ciHIs4o9+T/nq+LK0jKEWq+zJ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=MbNkyH8c; arc=none smtp.client-ip=211.189.100.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="MbNkyH8c" Received: from uscas1p2.samsung.com (unknown [182.198.245.207]) by mailout2.w2.samsung.com (KnoxPortal) with ESMTP id 20240209235208usoutp02fd2aa98ee21f69de46c2430c3bd08edd~yVuAEcc3i0585005850usoutp02c; Fri, 9 Feb 2024 23:52:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w2.samsung.com 20240209235208usoutp02fd2aa98ee21f69de46c2430c3bd08edd~yVuAEcc3i0585005850usoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707522728; bh=gM8WcyxM0kyctkmXBtKgbCJjoJZPH+hDa6zePYZQYvA=; h=From:To:Subject:Date:References:From; b=MbNkyH8cDAQuRnxgBMegujqbg5c/1zut1qWTXEcwHiO7+yX2drNTAEE0lw5QJUiMt YTo1btTTaiqOkwZ3Ew8dNYU/eUYgmpsiGwTQFpzCOAPJpwNx/ee08ljAFj8dxNg91W P1EphlJg2omjgpPYuvZOkjQdgBMaNu2jfHB6hEiw= Received: from ussmges2new.samsung.com (u111.gpu85.samsung.co.kr [203.254.195.111]) by uscas1p1.samsung.com (KnoxPortal) with ESMTP id 20240209235208uscas1p1e00495a73f5b23c3074158c26e625217~yVt-5uaqz1606916069uscas1p1V; Fri, 9 Feb 2024 23:52:08 +0000 (GMT) Received: from uscas1p1.samsung.com ( [182.198.245.206]) by ussmges2new.samsung.com (USCPEMTA) with SMTP id 90.E2.09760.8AAB6C56; Fri, 9 Feb 2024 18:52:08 -0500 (EST) Received: from ussmgxs3new.samsung.com (u92.gpu85.samsung.co.kr [203.254.195.92]) by uscas1p2.samsung.com (KnoxPortal) with ESMTP id 20240209235208uscas1p26c658c64cc85711cd3aa6312224164fc~yVt-hE2-o0911209112uscas1p2S; Fri, 9 Feb 2024 23:52:08 +0000 (GMT) X-AuditID: cbfec36f-7f9ff70000002620-34-65c6baa89ee7 Received: from SSI-EX2.ssi.samsung.com ( [105.128.3.66]) by ussmgxs3new.samsung.com (USCPEXMTA) with SMTP id B6.EB.50948.7AAB6C56; Fri, 9 Feb 2024 18:52:08 -0500 (EST) Received: from SSI-EX2.ssi.samsung.com (105.128.2.227) by SSI-EX2.ssi.samsung.com (105.128.2.227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.2375.24; Fri, 9 Feb 2024 15:52:07 -0800 Received: from SSI-EX2.ssi.samsung.com ([105.128.2.227]) by SSI-EX2.ssi.samsung.com ([105.128.2.227]) with mapi id 15.01.2375.024; Fri, 9 Feb 2024 15:52:07 -0800 From: Jim Harris To: Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Leon Romanovsky , "Jason Gunthorpe" , Alex Williamson , "pierre.cregut@orange.com" Subject: [PATCH v2 0/2] PCI/IOV: sriov_numvfs bug fixes Thread-Topic: [PATCH v2 0/2] PCI/IOV: sriov_numvfs bug fixes Thread-Index: AQHaW7L9HxX7C6a7gEK+/jIBMuGoFw== Date: Fri, 9 Feb 2024 23:52:07 +0000 Message-ID: <170752254154.1693615.9176696143128338408.stgit@bgt-140510-bm01.eng.stellus.in> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-ID: <67380BDDF3A3E047873C9EF42CA726CF@ssi.samsung.com> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOKsWRmVeSWpSXmKPExsWy7djXc7ordh1LNTh8Ucni2/8eNoslTRkW V/7tYbTYtOEJi8XlXXPYLM7OO85msf7rezYHdo8Fm0o9epvfsXm0PDvJ5vF+31U2j8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1jSlGFx 5d8eRotNG56wWFzeNYfN4uy842wW67++Z3Ng91iwqdSjt/kdm0fLs5NsHu/3XWXz+LxJLoA1 issmJTUnsyy1SN8ugStjRusHloIZHBWzJ0xgbGD8w97FyMkhIWAi0f/+LFsXIxeHkMAqRom/ u86wQzgfGSX+z+1gBqkSEljKKHHyFxuIzSagKfHryhomkCIRgatMEpNXfwAq4uAQFjCX6L5d C1IjImAjcezAS1YIW0/i2unzYHNYBFQkmhZ8YgSxeQWiJdZfvsICYjMKiEl8PwUyk5ODWUBc 4taT+UwQ1wlILNkD0SshICrx8vE/VghbUeL+95fsIGuZge5Zv0sfotVO4vT+FnYIW1FiSvdD dohVghInZz5hgWiVlDi44gbLBEbRWUi2zUKYNAvJpFlIJs1CMmkBI+sqRvHS4uLc9Ipi47zU cr3ixNzi0rx0veT83E2MwFg8/e9wzA7Ge7c+6h1iZOJgPMQowcGsJMIbsuRIqhBvSmJlVWpR fnxRaU5q8SFGaQ4WJXHeuw80UoUE0hNLUrNTUwtSi2CyTBycUg1MWvZ3ll7bNVH1e0DK38m/ jmitK7rFyrRsYtJJjyWrg1VcPmxqy4ra3L3j8y6ud95zxbTuVHe3+PK8+K62b7lSgMHlQ9OK dfMfZSydPvViZP3pzfHTV/QaZpg/nlok+msXX5BI49nE5dkLLlWtdHcQv5F+2+q8X2jH9pfW 91u9zB9dfB+0cOe3U8ZK52Kjz+s/mLT76z7DF1Vz5ENKe2ak3dxXYrvz4MGyPyfbn2b5X1rK fG0S/973adofBJq/r36YLnz48abrFVc1dojPclc89vTjLYfS1VsOiT24dPx19Kzc15XPDcwn 8fByipXdfVd/uLTZeaegr07wO8E3Cdfdtu5SU/gle/e6pEaXDrti73QlluKMREMt5qLiRACb JXnzNAMAAA== X-CMS-MailID: 20240209235208uscas1p26c658c64cc85711cd3aa6312224164fc CMS-TYPE: 301P X-CMS-RootMailID: 20240209235208uscas1p26c658c64cc85711cd3aa6312224164fc References: A deadlock condition was discovered by SPDK when removing an SRIOV-enabled and VFIO-attached device, with a specific threading model. While discussing this on the mailing list, a separate issue around updating sriov_numvfs and its kobject_uevent() was also discovered. This series fixes both of those issues. --- v1 => v2: * No code changes * Updated commit messages per feedback from Bjorn * Added Leon's Reviewed-by tags * Moved bulk of the v1 cover letter to the revert patch commit message where it belonged Jim Harris (2): PCI/IOV: Revert "PCI/IOV: Serialize sysfs sriov_numvfs reads vs writes" PCI/IOV: fix kobject_uevent() ordering in sriov_enable() drivers/pci/iov.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) --