From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796160718; b=qesSOdy89uzHaj0SYTSHoFaGtJrZ6emnf4Z2zLyz1kBRSbx1pVD9l29QG7Mfft+Q6CS+ LyZEUFYcG4CY7RhiocWI2aSPuS6EDn26cx7Rg8u+kqNV+eZIHm7VPazfI3X+tJDbr97cy 05VrzF6C1E8Kh/e/7/JrRfPeFOOuaacq3dMOKYh51tCds27u+ARBqGOYQPwbtHMh3pt3d 2uaWLwsu4QdyRR6QhgrV06dL5NLh4+zf+jOMB5PWPJHq/AiS56JL9dFEB80KYtBTI2ABB 0I8SLqP58CgE9WFbTVDubLOT7eG+CL1ekWI/Lp+m3UVIcMJy910fNxjOgih16o7W4uw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796160718; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=tkmnPI0kSLp4OZM3KPv4kQXNF3c5EOATjedZgW5wH3w=; b=3s/X2tpvPyvyxzCOHDcrIESlV3yhDOWCtbcQPZ/5gVfEq9xBBKdp3v9p1ny4X1xgeXr4 nGPTT0+dv3BFfOgpCAosJAJZw/kZZIpYviH8yMmJnlO8t6/sbAJlD8/WACKKz83dGGzmG uAwnoJUB7uLLbm0rrO9J6YrpaoydL03YZAXYlu8iPghHMuTqKizUmnfdxvHu5O4OEXEXG FautxEt9XcyvZ9YIJ9nulAdUtl168CeMPseoxX4HcnQoZMZ8p39pMTGFjzooVj0BMHzlD HqfFoQ1s6tBKVxwK4o727UQCkLnRqltgRz6gzc90IU2e6+RkRsu6oWDC9tYeOZFolYw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=stellman-greene.com; spf=none smtp.mailfrom=stellman-greene.com; dkim=pass header.d=stellman-greene-com.20260707.gappssmtp.com header.i=@stellman-greene-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=IyB2k9Jt; arc=none smtp.remote-ip=209.85.222.180 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CB8A606A334 for ; Tue, 1 Dec 2026 21:31:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1CB8A606A334 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=stellman-greene.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=stellman-greene.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=stellman-greene-com.20260707.gappssmtp.com header.i=@stellman-greene-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=IyB2k9Jt Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-9495e8ae23aso989256385a.2 for ; Tue, 01 Dec 2026 13:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stellman-greene-com.20260707.gappssmtp.com; s=20260707; t=1796160717; x=1796765517; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=tkmnPI0kSLp4OZM3KPv4kQXNF3c5EOATjedZgW5wH3w=; b=IyB2k9Jt9lkjMCHFWhL7sQqeNxbV68Dzv5ETRmmg29EHFsRggo2dEmorl+mcza4jsf qXZdwg1EHeGYhiiARgUX5JLs7K6NtKHcQhXos4bAz+pXLz4bHVPp+UgKUHYpm3lqemuh PpMI2DT2fJQtCakQR/bgazyK2LIJAOJBhkXNu3tkkiilcLTST15l5wF87KXKhK6blXls Cgz746uaEDnmLyXTDO5rWRwe+zpYkDDTCtTuIbwB75xhT/8App9pxTog12EklDN2xFmr ML6JzKpZOzf6bRKib+POBuvHzqkdzUlZ94cQoYjUsnnbxAz/eVK/k2PpIz/OGpsCqVvb eeMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796160717; x=1796765517; h=content-transfer-encoding:mime-version:references:in-reply-to :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=tkmnPI0kSLp4OZM3KPv4kQXNF3c5EOATjedZgW5wH3w=; b=wmy/bm2uZnRsldx+vwXomVccDPEAHmKEwvvLSyz0N+YLl+oddTw9O1LnoEbgmrwfuN VJOErHI9i1aora5fMHNj2vW94fTYCrPht2fpYvySgT2mtJ9ZUGbGIEh5bZZ0xQCc0gPo iO1X38gbQxhsojXgdonbUK67uTkq0ipCtyuAoiPxEV95UQk6VuBBCk10qNEpNPoBVhP+ /Hq39M+y1cmM5ZYHFy0dFKJ6FMa2M9sZopLw+aCELn8F2TC/y31bykRfrX+BgBbMcHU8 UE8mElkEXE0cjAYHKOYpFlId3kV6l8WQrakRv1h1GiyevMhZXjqcCP9FIHqO4sTXZxpD nMPw== X-Forwarded-Encrypted: i=1; AL+hErHCwmvPFh5x1YzIayYLCDDa/TrwzykQi7EeXC55vStsxouPoOEelQaev2n4iKOSqZCkG7dBWLtCW7Y4@vger.kernel.org X-Gm-Message-State: APuU4Z+4qCrBBVp5AOKFhwsJsGE4q29sAwy09AcU722J3HXK/Abh3KE1 4r52xNu11CJZ/3HM4BTYHq2QoGspe3tQV/R7Dq6xmAjuKKUw50MOwr5dt2CN72pP65I= X-Gm-Gg: AZFdTZdR8iEwbcnwJuIAD+Fk18gEKmpyGqr1Gsqrbyj9y7b1oW/zx7K6f3FXSRNkXjh 5uBaAFRKmAY6UzZ4miDpjZBr08sTB+civG7h4BRz7SJ0tKVqxiE51zTnd4MpsH5G6bcfdv6bn/r 0IFZuM1tkwU3X/5kbnDdiBIVhHA4m/+vAl0aPfGYsHh/cqD17rNdpn0IFT5w9lWGe0WhmUQMojh jhCSmFwkFNcxlO2kRXMhh2FWhWQtepRHyPtQQ9Lnh2rbWgqfCciqHOaRO1p/s4nQaxiDIAKBBnY 7kFC9mnixRN487PSd7WzHjwg1+cXBxziJA5qj9m5qWPRPpJMpIsjqstt5wJucMv1kOQ+1Fm8are pw4XXd2p+HhPvfKe/j3fO/aYJxX6mxAwK76wTSNh+gGEZdi5SOeX97MAjbYVWLHxmp9T/pjZ0mg 7PT8ZfZK/ZzXhtfRqAPj69uj+9BmjYdEhFzEVKGbCB7ChKqN81Xp9md+5LnYDR0v2jLNFpQFWa2 +ohGfgw4cwMduReiOou3saUW43D2F3WOI3FaEtfnqtvqjqncCBiX9N2dXkb1Hk13ZXK8HYUs+9x uS5KboDSLvp+ixyMohorS236BmgWrxJGEhziaoyKYkZJOEJdXxSdtd1O60NQsVpE+bkG231YWLR VWfEIr26sNSL/Z6tFPNhwjDI= X-Received: by 2002:a05:620a:2956:b0:93f:2d10:ea49 with SMTP id af79cd13be357-949bab2fcf2mr7041597585a.45.1796160717063; Tue, 01 Dec 2026 13:31:57 -0800 (PST) Received: from Mac.mynetworksettings.com ([2600:4041:5c28:200:f93e:7018:6806:9e16]) by smtp.gmail.com with ESMTPSA id af79cd13be357-949bb3f2de5sm2901148485a.29.2026.12.01.13.31.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Dec 2026 13:31:56 -0800 (PST) From: Andrew Stellman To: Mahanta Jambigi , "D. Wythe" , Dust Li , Sidraya Jayagond Cc: Tony Lu , Wen Gu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Willem de Bruijn , linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net] net/smc: cap ADD LINK v2 rkeys to the receive limit Date: Tue, 1 Dec 2026 16:31:55 -0500 Message-ID: <20261201213155.65668-1-bugs@stellman-greene.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: <20261128191730.30196-1-bugs@stellman-greene.com> X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, Dec 01, 2026 at 02:45:27PM +0530, Mahanta Jambigi wrote: > Would dropping role == SMC_CLNT be the *better fix*? I tried it. On mainline (fe6ff8d5d675) in arm64 QEMU with KASAN, lockdep and SoftRoCE, I opened 260 SMC-R connections from one client to one server, held them, and then closed them. Without any patch, both runs closed cleanly. With role == SMC_CLNT dropped, the client hung in close() in both runs. The stacks show a link-group termination worker waiting in smc_cdc_wait_pend_tx_wr() while close() waits for the same socket lock in smc_release(). With 64 connections, both builds closed cleanly. I haven't found why the CDC completion never comes, and I haven't run a peer that reuses its QPN. Dust, as I said before, the 508 count came from a test-only change inside the writer, not from real connections. Given that, would you rather keep the cap in smc_llc_fill_ext_v2() as sent, or should I keep looking into the hang with the client bound? Andrew