Article View: linux.kernel.netdev
Article #5305Re: [PATCH net-next v7 02/13] net: mana: share the EQ pool across a queue-set swap
From: Wei Hu
Date: Tue, 20 Oct 2026 04:30
Date: Tue, 20 Oct 2026 04:30
55 lines
10904 bytes
10904 bytes
Hi, > Should mana_ib_remove_cq_cb() use cmpxchg() and synchronize_rcu() for > teardown, similar to what was added for Ethernet CQs in > mana_gd_destroy_cq()? I will leave the RDMA teardown path unchanged in v8. The callback-wrapper lifetime issue is real, but mana_ib_remove_cq_cb() and mana_ib_destroy_cq() already have this ordering in both unmodified upstream bases used for v6 and v7. The acquire/release publication change does not introduce that reader/free race or resolve it. An independent RDMA lifetime fix should cover the hardware CQ and pending events as well as the software readers; I am not including that separate change in this queue-set revision. > Can gc->cq_table be NULL when this acquire load executes? I will also leave this initialization path unchanged in v8. There is a window after max_num_cqs is populated and before cq_table is allocated. A spurious or premature completion in that window could hit the missing table-root check. That window and the unguarded lookup already exist in both upstream bases, before this series. For normal HWC startup, WQEs are posted only after channel establishment returns and the CQ table is installed. I have not identified a normal completion producer in the window described here. This is a conditional hardware-protocol hardening issue, not a demonstrated new startup failure caused by the publication change. > Could this sequential mana_gd_test_eq() call lead to an unbounded RTNL > stall if an EQ stops delivering interrupts? I will address the additional per-CQ timeout amplification in v8. These extra waits are introduced by the queue-set series and are already in v6. The correction will stop the retiring WQs, keep their CQ callbacks alive, and issue all required parent-EQ markers before waiting. Per-EQ completions will allow one shared 30-second completion budget per RX or TX cleanup batch. CQ withdrawal and the existing RCU reader wait remain after the batch, including the partial-allocation cleanup paths. One detail of the reported bound needs qualification: each TX/RX pair has its own parent EQ. One stalled parent normally adds two CQ waits, about 60 seconds. The 128 * 30-second case requires all 64 parents to stall while the hardware channel remains responsive. The cumulative delay is finite, but it is still a real problem introduced by these extra waits. The correction bounds the added CQ-marker completion waits, not all RTNL hold time. Existing per-EQ destruction waits and hardware-channel request time remain separate. It also preserves the existing best-effort cleanup policy after a failed marker, rather than claiming new hardware recovery guarantees. Thanks, Wei
Technical Details
Message-ID:
<qset-v7-sashiko-02-v8-plan.20261018.weh@linux.microsoft.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349033-linux-kernel-netdev=dewy.ruReferences:
<cover.1791710735.git.weh@linux.microsoft.com> <9b7e62cc70138f8940a32869da44c1260748be14.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175602@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349033-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v7 02/13] net: mana: share the EQ pool across a queue-set swap Date: Tue, 20 Oct 2026 04:30:38 +0000 Organization: Usenet Network Message-ID: <qset-v7-sashiko-02-v8-plan.20261018.weh@linux.microsoft.com> References: <cover.1791710735.git.weh@linux.microsoft.com> <9b7e62cc70138f8940a32869da44c1260748be14.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175602@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3782235"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:oDH/obPWsr14wDGcdEhgrSSnyUo= sha256:GjM4HOgSyh6Cnm6gAHqQiMx9PnZJ45X+vWXImRTHw14= sha1:jSOPr2CiaYDLBuJVd0vZ37HhRJY= sha256:8Ii7D8Vx9hNQ89XkxJWDBuRqnEVgWvHJUDrR6lD/plI= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 3D673110BFE; Tue, 20 Oct 2026 07:34:35 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.microsoft.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6cK8bEkpzyn7; Tue, 20 Oct 2026 07:34:32 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349033-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 4C72B110BDB; Tue, 20 Oct 2026 07:34:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id A270A4A651; Tue, 20 Oct 2026 04:31:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1792470665; b=R8pv60kKaS7dOx/i+ve0pDXockf3TAARs5g9rUclU3hlKJ0zhJQRg2nIuosuCIQ4iifT xlsqcwVcxYyJJN2ojufrRPkQZJ8WKNG2tXUNpk8QrtqMdl1e69LonOnOoR9cXzV3g1A+X cmRiTdUyJjZ2V63h3KF1iJmeJIqUZbGqo/CaXgVkb18qygHPjMkP353CLK+E0iR7z2swq vZDyD1uATJra4e/3k7BeF30SMM+ALS2MOYl4sLAHyo1N/j6ilsE++NctKjtsTsQODzBVA 1SnPaeONQX9m/Qb6slaE10sicAMCPbhzSQS3t4Sdef1sawgsUkilKN0pLNN8SvP09FQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470665; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:Content-Type:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding; bh=6DcGGOOFdce5ERyHzgW3XUEmRU7KpMeHrpytV7uK3CA=; b=HxRN8iWMG8o6P96gqEk+1aP5vWV9IY9DN6o0+X62lxB2oDvDcobe/ZT0NxtHakwqOPeE bHvwzdkrfP+F0ybpPydU1AJF2fiOCP5PPHItPcAV4z4DW0i51NpIWm+FhDxFTo+Qgvyfs Q95TZSLiQ4nwAAD7FSbalg6mcuLybPBG0gKHIWXzMu9QEAb82uvuxBUPC83d1lSna+3nP mmCDW3rBIwuCoAI7HS3Qd/Eb1NoCIpn0QdLv//7ofoE06XHZuPTgPFW1QrzilA6BXQWy7 Gz202STrcbuqM3nyXu6ELi1P6LSDGhtKW/onYy6hjAZtfBnEhsWIKLgpzakwN/hxDAw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=CS0kzJ6V; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; arc=fail smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79597606A31B; Tue, 20 Oct 2026 04:31:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=CS0kzJ6V X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792470649; b=FYtbxGdRGc1VrBj9lDcou459fV0Q20ZFaQzcqr+1ldN1lw7TrvqbndLBNQxA8SZRIbCl qxtUWkvwnmA2Sg5dxgCimGNXROdB1wSJCywmABFrz0eBZO1P/K9zGhxTI5KXnDo4DclO5 udt0S8Y2Cnqzgeqv4l+rMbi0USCNu2vFEbFgMzaROWJusDR3GdCvmJqjpXxvg8Ghu1CXl xbVsrKPDx4KY+yTN+85ZYeGbb05gdRWCOfiGSIE+OMO0mrTL4MzLDMj8xQxS23V08G4lg t8R6X2W4Itc+k8aY0/GDZODojc10pbfmQnRDJeF/cMq0+bRYpyo78034WtYhs6rvQqw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470649; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:Content-Type: MIME-Version:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=6DcGGOOFdce5ERyHzgW3XUEmRU7KpMeHrpytV7uK3CA=; b=WetTRKpso9GQ8MEIHY8TSdYQeOpd5NK5EYAwbDQD0gYEsACXilZS+CEI7Sq7cEauzwXT 38k424Eybo29z5gOPrmtzJOON2o09NatO9bZS0uZCN8MCeZ2uR9+d8RX7SkOVy06wTQ/L xH3yaXsI0zxdrbMWhZLGXNyyYqhOBZAWSOS/cbWwaVS49+6gsgPegflWAbd4gicCJE2Qp +64n7fHH5S7NHVr3iGCgFbICyny59isMpn/fCrx8nYImUxXQth/2+HB4uhcwsZocESg1V UOif0Lfsx8cCbgPvayYqothEjLsKGxQTXBtIJ61iCb87nrkLzURTTL5T1ydnIhxJbgA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=CS0kzJ6V; arc=none smtp.remote-ip=13.77.154.182 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1C33606A31A; Tue, 20 Oct 2026 04:30:48 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D1C33606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com X-Received: from weh-cvm-dev-vm.y50bckvjo0hefgfnzfztsfttff.phxx.internal.cloudapp.net (unknown [20.169.55.37]) by linux.microsoft.com (Postfix) with ESMTPSA id E211520B7168; Mon, 19 Oct 2026 21:30:40 -0700 (PDT) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E211520B7168 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1792470641; bh=6DcGGOOFdce5ERyHzgW3XUEmRU7KpMeHrpytV7uK3CA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CS0kzJ6V5exZC/Oxw4HGYd9bVsqvkL/H90ftXt8pcPBtqIQ/M8Qx/lifmZM9Qdi/q xxwLBbuH0aNiFGPq/S6kd98PZOel5zGnpeo6z/GqHRhatqm9oOKRMqBRZRpB7uWQIY TKAgolw/uS086DhAngF5p05mv7pACCn6hSsEgEyU= X-Cc: linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, weh@microsoft.com, kuba@kernel.org X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <sashiko-outbox-175602@kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list