Message ID | 170752254154.1693615.9176696143128338408.stgit@bgt-140510-bm01.eng.stellus.in |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-60156-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1200879dyd; Fri, 9 Feb 2024 15:52:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEofdjllu+HYhQO8jFyqqlWsZI8QMbQ7p4+7h6IAlPFVC0S0uROgv4PCwdAwLP6Fj3JD6Lg X-Received: by 2002:aa7:d6c5:0:b0:560:c364:2cd9 with SMTP id x5-20020aa7d6c5000000b00560c3642cd9mr271742edr.17.1707522751366; Fri, 09 Feb 2024 15:52:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707522751; cv=pass; d=google.com; s=arc-20160816; b=eyAuuiEhA4cl3eRbKtzVLqldDvEJe8Om/KoB6vClXYSocpSZjo9jNv/6EM9SUyNvpP AyD2NOMF+boGDq/JftmHFRt00ilQGdO7SyejtfAKLGvO/a0LGvTCPq12jBx8iHIIZH9Q ZSKaZpskOZVY8yQq24x5/g8Dz37uAgHljMC6oJjG6kX3Bp4wJXEU74cwMDIwGOA8af3G W7xmBWvVmoofuoBL2yaWD9N3jO5LMht4hJh5nocDRPJBxHtr5stjoVpah+FWH0ImhlN/ 2dT1k2h9/uqJ+wW6jycY/JiZxfyoCdgG3thye4VLC0CwMN2RbeS60dRN7ygm1j7D461N W2UQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:content-transfer-encoding:content-id :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature:dkim-filter; bh=gM8WcyxM0kyctkmXBtKgbCJjoJZPH+hDa6zePYZQYvA=; fh=k/5AY22DXxDbTgo0wwWoip4Pra2QUTSIogin7/oLN2k=; b=q1oNevsSxstW62eLRctJ6KheDUCGe/TyyMJVKAdOoj/sDZBekD2HGBxJfV0Se54+Ha DQ0EkTXKLqMxbghmxHUEUeJHplI9203aHv/iv8L1toUzVrUGHCgp9mZkABkEjqQsvrfQ 4SweZZrzWFvKlEQSa4sKe5MgsZXt+UxsiqrXybAKeeCEuhUVfMpkoaBYN5EGH291iU5O NLOXOm6wTQPsu6KRYd0Wkw/RMHUzBC+OW+xZnHty/MpJdqIuOwoVLuRhB2F+V5vbekrE KkOfyPga7IllRzt0NINhRuBAcAMRwr3XhWxpbxsxpaFNnlpFAgfTkvTyz5yUWNUKsJNm ZkJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MbNkyH8c; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-60156-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60156-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=2; AJvYcCXPAhCojWKVJ+ADayX6SUN7P3Rwot3qpOuaVTRv+V+HdvFr/QNHE75HIWn5EKODlfoqrBDjsz9zRe4Tdp0qC8d6seCo6A== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ca4-20020aa7cd64000000b0055fc8ab2072si234303edb.577.2024.02.09.15.52.31 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 15:52:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60156-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MbNkyH8c; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-60156-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60156-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CEAAF1F253E3 for <ouuuleilei@gmail.com>; Fri, 9 Feb 2024 23:52:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6047539846; Fri, 9 Feb 2024 23:52:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="MbNkyH8c" 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 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 <jim.harris@samsung.com> To: Bjorn Helgaas <bhelgaas@google.com>, "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Leon Romanovsky <leonro@nvidia.com>, "Jason Gunthorpe" <jgg@nvidia.com>, Alex Williamson <alex.williamson@redhat.com>, "pierre.cregut@orange.com" <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-Type: text/plain; charset="utf-8" Content-ID: <67380BDDF3A3E047873C9EF42CA726CF@ssi.samsung.com> Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOKsWRmVeSWpSXmKPExsWy7djXc7ordh1LNTh8Ucni2/8eNoslTRkW V/7tYbTYtOEJi8XlXXPYLM7OO85msf7rezYHdo8Fm0o9epvfsXm0PDvJ5vF+31U2j8+b5AJY o7hsUlJzMstSi/TtErgyZrR+YCmYwVExe8IExgbGP+xdjJwcEgImEtPW/GTsYuTiEBJYySgx c2IzG4TTyiSxce1xZpiq/vdnoRJrGCXWPNjJDuF8ZJQ4O+8dVGYpo8TKh+fABrMJaEr8urKG CSQhInCVSWLy6g9Aszg4hAXMJbpv14LUiAjYSBw78JIVwtaTuHb6PNg6FgEViaYFnxhBbF6B aIn1l6+wgNiMAmIS30+BzOTkYBYQl7j1ZD4TxHmCEotm74E6VUzi366HbBC2osT97y/ZQdYy A92zfpc+RKudxOn9LewQtqLElO6H7BCrBCVOznzCAtEqKXFwxQ0WkPMlBPZwSHz40M0IkXCR eHroCtReaYnpay5DNWRLrFzfwQSyS0KgQKLhSBBE2Fpi4Z/1UCfzSfz99YgRooRXoqNNaAKj 0iw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Nzi0rx0veT83E2MwFg8/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: <CGME20240209235208uscas1p26c658c64cc85711cd3aa6312224164fc@uscas1p2.samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790467376516602604 X-GMAIL-MSGID: 1790467376516602604 |
Series |
PCI/IOV: sriov_numvfs bug fixes
|
|
Message
Jim Harris
Feb. 9, 2024, 11:52 p.m. UTC
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(-) --