🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18040

Re: [PATCH net-next v11 3/4] net: mana: support concurrent HWC requests

#18040
From: Leon Romanovsky
Date: Tue, 17 Nov 2026 18:07
20 lines
9016 bytes
On Tue, Nov 17, 2026 at 04:01:00PM +0000, Wei Hu wrote:
> From: Long Li <longli@microsoft.com>

<...>

> For RDMA, leave live verbs objects and their dependencies intact on local
> rejection. Retain queue mappings on failed creation unwinds, including
> regions already transferred to a QP/CQ handle and partial multi-command
> DMA-region creation. Do not unpin their memory merely because a cleanup
> request could not acquire an HWC slot. This may deliberately retain
> resources on a failed cleanup; it is not proof of device quiescence.

This sounds wrong at first glance. Unfortunately, the entire series was
written using AI tools, making it difficult to provide meaningful feedback
based on the commit messages. However, in RDMA, object destruction should
not fail and we shouldn't leave pinned memory for the user space process
which already exited.

Thanks
Technical Details
Message-ID: <20261117180724.GD162713@unreal>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365526-linux-kernel-netdev=dewy.ru
References: <cover.1794751992.git.weh@linux.microsoft.com> <45db2acd8f03421191f5b3a9f4bd7ce9e9259b33.1794751992.git.weh@linux.microsoft.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365526-linux-kernel-netdev=dewy.ru
From: leon@kernel.org (Leon Romanovsky)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v11 3/4] net: mana: support concurrent HWC
 requests
Date: Tue, 17 Nov 2026 20:07:24 +0200
Organization: Usenet Network
Message-ID: <20261117180724.GD162713@unreal>
References: <cover.1794751992.git.weh@linux.microsoft.com>
 <45db2acd8f03421191f5b3a9f4bd7ce9e9259b33.1794751992.git.weh@linux.microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2396015"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oHVTmGoqNVI5wtOclRXkzlcew1o= sha256:+raLP6f/Ft9scXOUJGiM8+Lan4IYy7BVC6WzdM6BGHQ=
	sha1:QU4LEQV2PmIduqgUBs2l8hL1kMc= sha256:CMDySmjPCKz0KId2hqb/zW/Y0QyDYm/n6eQ3gbV4I30=
Content-Disposition: inline
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 64172115037; Tue, 17 Nov 2026 21:08:00 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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 (2048-bit key)
	header.d=kernel.org
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 SVvKK6MKEecL;
	Tue, 17 Nov 2026 21:07:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-365526-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 65ABB115006; Tue, 17 Nov 2026 21:07:40 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 0DF9F2FDC9; Tue, 17 Nov 2026 18:07:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794938850;
	b=q0oe8XXkYcOUtDcS89bn3k7Agyakt5Gdt7u8Ij2wavLk0txTb4Hpd6Lcyr4V2bjvcH/o
	 gk4/prn6R3K65ckabMnU0zT0ua8ltLF47i+Sp5sEGmbVA+A5Czpu73uC9tV/IIiYLU+h0
	 NOXaepRPOk4ZDdHKZjfcxVxa7GS2tYEqMx+pKmgPvslAYCzz768cdTaoKNCagrgoVSn9K
	 XEQQ0B23t/4qzxSrOBnRbibY20DT/K3E0z0YWRk5xRfrW9Naroy46wwokO4DQ918/C9oY
	 lwrGX/F63Si3zw83pMScGVi7egI2CSEyyNtwrd3TUGXVEVBbOKMzVpsQ0iss9/4vRBQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794938850;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=FWa7z5prr3r+MhfpTRC3FLYq50rHdCPulBDCVNz2EfY=;
	b=awFO5xldUUj6grNc4oSnUj41J2AiGnh6EpOVEqsas78WwJIWjhqNvXL26CoXD7+h+v4i
	 46Bwp4eXN3t7Rrzn80LpY33ywbKU0RndKSukr0N6EuLA5CH1owNGKP1LDxU44C2JbuaWk
	 4fIV0CDCfK11WCuvCXEiYDdLF9wNKUJiQ3QT7+VXph9whfeJQn/xPh30a2semG8L9WxKH
	 jiyY0VObdcB8HZ9W0NZGmi9diQqMdulsHQMc9uxOVQFTGHViPpkA20/QrgUXkPg8p5v2i
	 fwBwJfkhux6eytd9o0KkOYSPlI1nHudtjWpiTcCndSRuJ5xfH+G1RXcSWSp56UHEUBA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oY3+I7hv;
	arc=pass header.oldest-pass=0 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 BB451606A883;
	Tue, 17 Nov 2026 18:07:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oY3+I7hv
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794938849;
	b=NYV7DNhFN0o1h7vMOyBsmM7iPIyd2qNWNEu3lSXQ/QdWvA3iB07pgQesRE2VI+U8nqD4
	 eRTNbcGJnKu4N+gT4NIO774lh/yLetuAO7BXs29kjSdFYv3mQ7Eh0CZzVbVxK3zLJKBNt
	 oufNGsSZe+1SklKN1doShEh7Bsg4TbDLlAQcOH3vPwgAyEx13UzneedVFPuNvIRWeivbu
	 wb1OPK5BEqr+eqYYsaeKe0smddVi5TH3U7jldbL7zydlwO1vhENY2xGkbHl9dNcasVD0e
	 zdci7GhtCmJ47uCCnRKOMycmjB5j9Tdzd3wL4h9nFnjMVtTcB4nD9OC11Ozde0nutjw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794938849;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=FWa7z5prr3r+MhfpTRC3FLYq50rHdCPulBDCVNz2EfY=;
	b=Ln3WZXrnrWAvTtwCMysFwkZcOds33ijqGrKcsKKgdFeAkqqqedxxRSYuS6KLLOLR0eyM
	 Xn6iKezSd5rEOZZbISFwUK8AvSnzOoe96y4AEeMA/bO+u2MSnq9DJbf893eMV2PnaxxUx
	 DbkyReNp3sgOlRtuzha8ByN66h7SkNfSBjwo8dKqrdQ5lumz3NWycXgP5kK08nIROwRbO
	 /hU9MMoEEs5PDb731L9Y46W6VB95FlrHhvuJtBDLsi3VOZfojGdwwY88c4O4ZW8lHb2Fg
	 afUiVKDlavT2I/JU+d8ego4p5VP3tmQ6+Xo8YVdejbntiX6S/x5dd6VKoVELDYa4M4g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oY3+I7hv;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7D38606A31C;
	Tue, 17 Nov 2026 18:07:29 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6B571F000C4;
	Tue, 17 Nov 2026 18:07:28 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794938849;
	bh=FWa7z5prr3r+MhfpTRC3FLYq50rHdCPulBDCVNz2EfY=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=oY3+I7hvFvTHmpotueR1VWhuZb3+Ilx2ffad2ROiBk2ZodPQLubPeWmDFYwZYrkux
	 5pv6lN9DXjX1elCklpgpuSkzAtHet/YgMQkwc//gCZkvcZS/eMTB9a7NENFO+4XXvX
	 ES7Fzf6jkmNulMF9QsW2YeG7Fp2LXwbfYydeCp3cx9T5W8x/IPbkrrBIf+YTfZuG0x
	 4pHL7DDXxcIge7cEdYw4Bt+9VhSqoYAqWJ7+v0hCjW9oJR96rfxMpBJ3gIegFhA+xb
	 bQ9ZaEbR0dUDi22sovsQ9XGoz3trstKbt6IzcaIZnl9pOPtMOPRonVahCZkJiTF3/X
	 o6WShB/ZCsdng==
X-Cc: longli@kernel.org, kotaranov@microsoft.com, kuba@kernel.org,
	davem@davemloft.net, pabeni@redhat.com, edumazet@google.com,
	andrew+netdev@lunn.ch, jgg@ziepe.ca, haiyangz@microsoft.com,
	wei.liu@kernel.org, decui@microsoft.com,
	shradhagupta@linux.microsoft.com, horms@kernel.org,
	ernis@linux.microsoft.com, stephen@networkplumber.org,
	netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
	linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org,
	gargaditya@linux.microsoft.com, kees+treewide@kernel.org,
	kees@kernel.org, mawasthi@linux.microsoft.com, weh@microsoft.com,
	edumazet@kernel.org, shacharr@microsoft.com
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
X-In-Reply-To: <45db2acd8f03421191f5b3a9f4bd7ce9e9259b33.1794751992.git.weh@linux.microsoft.com>