Article View: linux.kernel.netdev
Article #2707[PATCH net v3 0/3] net/smc: fix link group scheduling, registration and work lifetime
From: Chengfeng Ye
Date: Tue, 13 Oct 2026 09:17
Date: Tue, 13 Oct 2026 09:17
53 lines
10482 bytes
10482 bytes
This revises the two-patch v2 series and adds a separate fix for the running-free_work lifetime issue identified during review. Patch 1 serializes delayed-work admission with the freeing transition. Patch 2 gives early cleanup a single teardown owner, pins its callers, and rejects first registration after teardown has claimed a new group. Patch 3 gives queued/running free work its own group reference while retaining asynchronous cancellation to avoid the existing wait cycle. Each patch is a complete logical change. The work-reference acquisition, cancellation and release changes all appear together in patch 3. Patches 2 and 3 record their prerequisites in their permanent commit messages. The pre-existing callback issue remains until patch 3; no earlier commit acquires a work reference that needs a later patch to release it. The original KASAN excerpts in patches 1 and 2 came from instrumented runs. The registration and running-callback gaps were identified by source review. No new runtime reproduction is claimed. Changes since v2: - Serialize first registration with the freeing claim, and clear conn->lgr when registration is rejected before it acquires a connection reference. - Add the running-work lifetime fix as a separate third patch. - Correct the cancellation comment and document commit dependencies. - Rebase onto current net/main and validate each cumulative revision. Validation: - Applied the exported patches one at a time in a clean worktree; each resulting tree and commit message matches the corresponding source commit. - Built net/smc/ with W=1 after each patch, with CONFIG_IPV6=y and disabled (six successful builds; CONFIG_SMC, DIBS and INFINIBAND enabled). - Strict checkpatch: zero errors, warnings and checks for all three patches. - Runtime and SMC hardware testing have not been performed. v2: https://lore.kernel.org/r/20261003183237.2284245-1-nicoyip.dev@gmail.com/ v1 scheduling: https://lore.kernel.org/r/20260927074520.3694663-1-nicoyip.dev@gmail.com/ v1 early cleanup: https://lore.kernel.org/r/20260927063607.3691520-1-nicoyip.dev@gmail.com/ Chengfeng Ye (3): net/smc: serialize link group free work scheduling net/smc: serialize early link group cleanup with termination net/smc: hold a link group reference for free work net/smc/af_smc.c | 8 +++++-- net/smc/smc_core.c | 59 +++++++++++++++++++++++++++++++++++----------- net/smc/smc_core.h | 2 +- 3 files changed, 52 insertions(+), 17 deletions(-) base-commit: aaaaf87ea99b8766c9a8aa0e71aa42e6bc8a5320 -- 2.43.0
Technical Details
Message-ID:
<20261013091716.1210420-1-nicoyip.dev@gmail.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-345494-linux-kernel-netdev=dewy.ruShow 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-345494-linux-kernel-netdev=dewy.ru
From: nicoyip.dev@gmail.com (Chengfeng Ye)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net v3 0/3] net/smc: fix link group scheduling, registration and work lifetime
Date: Tue, 13 Oct 2026 17:17:13 +0800
Organization: Usenet Network
Message-ID: <20261013091716.1210420-1-nicoyip.dev@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2014268"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xNccHXxjq8U1gWxqQ4TbMttioF4= sha256:1+2Aw+1z4RlqWsLy++67wGyoQdTxyBW8oUxbSNsRtJ8=
sha1:2H/PK4vJ93If5ZI1Le1amdyArCs= sha256:l4j9SYQOCSKkO/TmblNQvyLT8WrG4SdXLoU7KYdvGB0=
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 6024510FDDF; Tue, 13 Oct 2026 12:36:00 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, 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=gmail.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 MnoIQVGM1cna;
Tue, 13 Oct 2026 12:35:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-345494-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id A0B7210FDDC; Tue, 13 Oct 2026 12:35:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sin.lore.kernel.org (Postfix) with ESMTP id 4E4993349C; Tue, 13 Oct 2026 09:18:31 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id C53BD3C1985;
Tue, 13 Oct 2026 09:17:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f0WfxoEw"
X-Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C052246781
for <netdev@vger.kernel.org>; Tue, 13 Oct 2026 09:17:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.179
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791883076; cv=none; b=M8vI3rigpi+UDJn+KXpuppdJ062Tx5pVkXuiMk2tUuhPukf3xEp691I4hJyAzgCr607vvCWpIBfu2IyhwakGxvlmgkcAzmCrvkVW4Okm/jUB+NkTngoArPjESCVHEGIScdDd+nlVAUU/hy2DPUlTXZEd9f35i3hDUMnH127gu6M=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791883076; c=relaxed/simple;
bh=b0WouZwkIzP19EsEq0Zzmc3OoBcJHUB8MdkLHNx6RI8=;
h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X87Gp1t+ICaYXbisRqmZyqMYXJjVikDhiXQPNzaEzL9TSAjjGfJX0N4/aegRpRPJAneRZ8BMsn0f3cX2dihLgG4nakNKICvcBM5E1elTOogRPKM6ZgJ7/q7nSZ0kQZIIXGhHShRHgXR/oD8jrEuHyuzbXmYMVvWybkiTyYhUQUk=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=f0WfxoEw; arc=none smtp.client-ip=74.125.82.179
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-33bb5afa736so292325eec.1
for <netdev@vger.kernel.org>; Tue, 13 Oct 2026 02:17:55 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791883074; x=1792487874; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=MIhtYvHUWNyU/lt1efJRDPOudyxWKfzxLqq2jTOG1dg=;
b=f0WfxoEwmmLYF4PLxdosm/HQ23XDjboFttsfEtyuUgup0BM76NJvHlbraYakKLdb9Y
jRaD3Y+sX7GU6DVzuJQ6hHZTJp0TpogKFDWzVZxaY8WF3qIFMCsvWFIhk/YQ3wrood1F
N9PMlmRjdhxJwWKRlLXs1OjOmLe6QRTrTRk3BFKlHnm2H+Tbjcx+ngDbEgj8/c02p0nX
R5obAX97644MNco9DL8KhBbW1H3dj5a1rPXvtMeyL5bUuIDcGnywXU0yDj/PO5l2Cb7E
OnpTKxONiAQO1j7dZU33EbF8dAf4uv6384N/aH5aiMm1SPQ1Uzx9uIGQjVpVvlMwrDUA
hrtw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791883074; x=1792487874;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=MIhtYvHUWNyU/lt1efJRDPOudyxWKfzxLqq2jTOG1dg=;
b=uuS9hhO1QhSr7JmeJrgajPCMFb1pc/rosuYbNIStwLCeHoONA+1Ufe9ln4j0xhPswD
c3ewUS7Eewuo2vfZPcgz7xn3uYmy9VQ0fAU7/2fFWIcyomcDuXBCAwSPKGm45Jvd51SH
2OP79TaRk4yA7IojkpMs3UhsVpm+e+aCb5pXcZrgW13PG81qT+B91jqxDgtnSExS/Olo
dx9nsC7pNfNJLHgwoRwHX44XIUPvcRBhFnaFP88dOn1l/j3ZyguSLuyrIt9WpAZ3INIH
QS+dflUVdW6vTtqqZk1c6cPmaODICQizw5qxhqumihFMZaxjEW+mnJLUZLmwA8yahCuU
Gq1A==
X-Forwarded-Encrypted: i=1; AKwUvBxhNam8ihg7dqfnvQxLYIibOVoxOHNQtbEsNiXsIoiDdJpR6spdwWv+V3AzxYBY7hAV4VAGjI4=@vger.kernel.org
X-Gm-Message-State: AFq9FYLDPDOq2WN4rcqfh2WG8sTz+bwKmNt2Su5QYCN2w7vbO6caw/1b
7dsh8JWkItxKkH3BnD1VTYgXyus7+IjSsClRRwRukgpqrdwd3S/Grrmm
X-Gm-Gg: AYBFou3yqJez2OQY/S/ad2IlPysjSt96IE5d6iavoRMJuhS5baU7k2Y/5gfePBQyOFq
a8oYEhmKenyKWZm44pkZyHciY9oSqKOLnSCz4I10OTDE8Rh9V7LVaAmtdi1NxE3sKP8NFbwgPS6
lBNaeQ4rUYCcKkS7c6bmSB9cSkQgx0b61Dq6rT7Dopl+uK+53uupW+STxhdiF0lrot8Whp6MdVS
7hNhB1r39TDesVd2gXWTVgmq+/PLOOC/YxS98NZAhPb4onnUupWnI/XBD4+SV0sf6JZL7/3J7ct
tafz5WNMu3oX0HyNvonP0h9hjK2/MHQzpP/8w+CjL5Yk3RJ4KAeepjO1/WRsHOnUo8CmuzDJlYj
Muw8VHHXYAHPN0H2JYF+8542UpCVfvGEyvXYBZncDgWH4Be2+oKK9Y6Gm0aa8sDsehi73KxYURz
sFet3mZF63gAFmyMpk6DHWnJxam82X5aX6J3NOX1j11Ctlr4Mwbo4Ddy/hQnMY77m1MATSBH7Ae
69neCJ9ylrc6s7a1QAIUOgJ3mgMpFZYx0YD8eTswKhjUsx+QZsVwsg0+Av4R2DW
X-Received: by 2002:a05:7301:428b:b0:358:7ed4:a049 with SMTP id 5a478bee46e88-3587ee40938mr18688457eec.0.1791883074227;
Tue, 13 Oct 2026 02:17:54 -0700 (PDT)
X-Received: from localhost.localdomain (45.78.65.84.16clouds.com. [45.78.65.84])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3537cb6a279sm41437975eec.30.2026.10.13.02.17.50
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 13 Oct 2026 02:17:53 -0700 (PDT)
X-Cc: tonylu@linux.alibaba.com,
guwen@linux.alibaba.com,
horms@kernel.org,
linux-rdma@vger.kernel.org,
linux-s390@vger.kernel.org,
netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
stable@vger.kernel.org
X-Mailer: git-send-email 2.43.0
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>