Article View: linux.kernel.netdev
Article #5301Re: [PATCH net-next v7 06/13] net: mana: swap queue sets in mana_set_priv_flags
From: Wei Hu
Date: Tue, 20 Oct 2026 04:30
Date: Tue, 20 Oct 2026 04:30
24 lines
9178 bytes
9178 bytes
Hi, > Does this code introduce an open-coded trylock pattern? I will keep the existing synchronization in v8. channel_changing is a vport-admission reservation protected by vport_mutex, not an unprotected replacement for the serialization of Ethernet reconfiguration. RTNL serializes the Ethernet reconfiguration and reset writers. The reservation remains set while the rebuild releases vport_mutex between individual vport operations, so concurrent RDMA admission through mana_cfg_vport(check=true) can reject that interval under vport_mutex. The success and failure cleanup paths clear the reservation under the same mutex. Holding vport_mutex over the whole rebuild is not a drop-in replacement: the vport configuration/unconfiguration helpers acquire it themselves. The report does not identify a missing exclusion edge in the existing protocol, which is also present in v6. I am not redesigning that protocol solely on the basis of its resemblance to a trylock. Thanks, Wei
Technical Details
Message-ID:
<qset-v7-sashiko-06-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-349036-linux-kernel-netdev=dewy.ruReferences:
<cover.1791710735.git.weh@linux.microsoft.com> <c1a2032792858ac0234807bbb5b26b81af4d10b1.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175606@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-349036-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v7 06/13] net: mana: swap queue sets in mana_set_priv_flags Date: Tue, 20 Oct 2026 04:30:41 +0000 Organization: Usenet Network Message-ID: <qset-v7-sashiko-06-v8-plan.20261018.weh@linux.microsoft.com> References: <cover.1791710735.git.weh@linux.microsoft.com> <c1a2032792858ac0234807bbb5b26b81af4d10b1.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175606@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3781827"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Lj62oHUrBzhMifMGdmB9WhrTKtk= sha256:Ig83HYYBsfn+r+P21EOpSub5+sAePV926sM7600hPnk= sha1:jult4k2U6YV9DpUkO7Ai/o/RGT0= sha256:ewR/bcAqL17cj01svd73No8aOZXUIpM0AaMSuxatDLU= 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 01263110BFA; Tue, 20 Oct 2026 07:31:57 +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 QX9cd3t8ms6f; Tue, 20 Oct 2026 07:31:54 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349036-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 2F880110BD7; Tue, 20 Oct 2026 07:31:46 +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 822BE480D3; Tue, 20 Oct 2026 04:30:54 +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=1792470653; b=Ip9CpzS2lYBWUGfzqwPmB6xJeF1VvZulcZ5Dxt7X6pnAbW9OeNElZ401E0JqXzA46tP7 o0Uqn7/wj9YbQyxGJdbndxcADwv04uJJelxmusolD+oIrFqaCc1Ds+2oj2RSwnvmuT/nE IrZO7EFiUn2ApCy5FNZzwfsoqwJCcDTi/Dsn0YQWPm/D+BJa4VvfIoLzjlfEB2nWfqf7T Y3kSbRRAeC1w+HdSUzy+oxbcjoD7tq3xmBEzapYPq+ghR7pQsz6JW5culS8KqUCCtEnmX Bdmr/b4DolgcEJ+HXbLOb0qvJusi/MsD2hsK8GApI72d93pIYWj0jExSL7gnV2DCgDQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470653; 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=GUy/xzBZGPagZZn/WQck+ql2UBUZUe5Sbx3c/m790fs=; b=eODRLHpywJX1rFf/lmZ69aqB9HDkKl8NLvkpfwNVZdy64SxUH8tFXSCf3daJ5Drxvgfc KZGnY9Sz5itycHtOF1ZzHbdwmIdWDC/C4YpdJFFmqAQkMdC1/PCGZUEf/DbCbY47B/JYu sbULa6PhoFMhyqGImPwKEDNtyp9qi1HCZAXFJuUkZy1iOSHkUN7BENDbhPZT6OQC2Maqc 3E5mppQM/jPsKTiTvgpqZ0WycL0UcCKxSdOKT1/8dajAYurN5QX/UmyV+Mcm0mpZWDk7u QYjZpQUODVlFoa2fcGFKgHX9ZBzNJ1YFD1lxWj8cMHv82pwmoVyGjLFbt0CiMuugNNw== 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=quQjRj6c; 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 9F6E3606A32C; Tue, 20 Oct 2026 04:30:53 +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=quQjRj6c 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=1792470652; b=m/iXbPSTKTLvYm+4gkWcp04YnsWgN52GT/25nk8/I1v2AksOqV7QeNaBnTdAf+XxEGkV PuXzx4n6wCHf6szJjXQZqtVujjiFYSxuTZZd/66DBLc17xB40ME5Z8Me/gXEefDpIzsoX tLBg720RlOZRIRuybcYKvfPSQ5HJjltu8P5WQuSLTTv8tIfPP4/6xSEt/PzgYbucHVxLh zGh8gWVlu17Uv1bQhhTZ5fhWLrlFD0HgZyor16VZsQVYiySiGzeYgxUx8szS/R320tDSy g/pqBYQrFi+GakVa3FiaP9PUSKJiZV7uX3bRZ4wsQxfjI3Iblpxx2Oz4kutq06HWeaQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470652; 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=GUy/xzBZGPagZZn/WQck+ql2UBUZUe5Sbx3c/m790fs=; b=ZHbilL7AcBS1T3QsfBUu1dqCIhB3+MeXJqJSWiUAOlA5C8RUMFwxnYsG5DTl2z4MoxHo IsMnjyWosJ0fVln2XUVPju6RQv0HGLnVhlG0k+m7l+YS8d4WwvJ3RcYmGHFI5zbuKXqLC YHFlf2/JtsOWgTTC8V1uzMxIJffUwT8D0QzMzvE1CupxP+VvpkSFjCZWFMnrYthOMX0d1 9wpi+8pNSi/LCqs6ksoCO+S7JzhQQaMlghMFzwIewdfzFX99d2dVO576zpVrV0EDHRTGo djTdysJuxJ4bHejZmUeQeE6yVUKjX582TecdEyjIijvJRmjy9XkLVNotM1nevCF4+Sg== 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=quQjRj6c; 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 702E8606A334; Tue, 20 Oct 2026 04:30:52 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 702E8606A334 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 D772020B7172; Mon, 19 Oct 2026 21:30:43 -0700 (PDT) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D772020B7172 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1792470644; bh=GUy/xzBZGPagZZn/WQck+ql2UBUZUe5Sbx3c/m790fs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=quQjRj6c6EZvljRRnAfURE4+hQoQx4Q5gCFslrhfUW4j6jdKJNR6kdI2u+KS8Ta1V may3NWnVufFkgqY0gZaEXSyM1FjA//KEUMd5BPuVlk4kMtT3SOJWWSe34VOJN21WD+ 4UYjtMjtZ6botHve74ebtkD5z6lHNySUMlGd+Qug= 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-175606@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