From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796175075; b=pB1EbE5/swyorP+hbXhB2LX7pJfdre2yTix6DeQRtKlD09AItsO1VYIg9IyBHSop7xVO ZB0iL1utRpQNsypgAil7SJ2X+s6DZ4wNKPqkfmyjXlzzPb2rzZRr9zNpwxw4f1kMajBSk uFTzU0SD1Pb3KuAcJnJ2twTM4OHqi1KN6Whk9N8WoIIy4wLCbZym18PtJ1U2f8AVGyT7y perRVsn+GJPx8L9sII0sh/Fq02clwAu0bmM1hPGhn1H2/lAjSAfy14tfIWfuk1XsJtfoO dV23hz8kpJYk9qdXjNvF1RSiFe2qN2JPwW2SZnRWnckZWeImDWcqMZmkly1sIEQNpBw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796175075; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:Date:From:To: Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=Db1sDLpZmg5qQ2+XLuwLrp4xzrDpba+5gGhvv7ckoJs=; b=FKEw3o0Mga0TIA83DD7vRhO+Ds5VJXUjoCX7IshyqI9r8pQwIv0S/LFGPpVvjYhxDj9u 3Gg1R7ZO/5ZpGe1LecM9zsNUAsWbXo6WnkPEHCO1iRWOumJLGxRRS1sfw8a0EKN9gltnw IlnVll72ByQnKOGxObqFhjL8VPGAirbIr2Us40zajCmbocMFvW4Dl0jp7f/bnVaop7u6c frnhbWbn2Srb9Zbl6bTr3Dl14A74q95wwDb6YV1SVMKeJ6txfKqjslsby3ej7sFls3t45 uN3PZ3x3iOB6UHT0iNbV0ddv0EAHKjMpS2bet9/vXCfuZqYZjqC8qTMuRxLCrUVp/nA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=VXlEW+g2; arc=none smtp.remote-ip=115.124.30.131 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08252606A31A; Wed, 2 Dec 2026 01:31:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 08252606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=VXlEW+g2 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1796175070; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; bh=Db1sDLpZmg5qQ2+XLuwLrp4xzrDpba+5gGhvv7ckoJs=; b=VXlEW+g2PhNtFlWh7RJs8o0AK4kguNOuCkjuZ9JOf1Ny3Zv88WWZSTEX+6t06Na4ZKJmbAx8TnOzXVwvfj1roSYwZIDHB/h8W3fTvDe5s4lOEblrSkF2TqCNpaxWVxno1s2PB+qu3a1NKsll4Od84tpWalxaNzGC/BkUUVLEJXQ= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam011083073210;MF=dust.li@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0XG50AMK_1796175069; Received: from localhost(mailfrom:dust.li@linux.alibaba.com fp:SMTPD_---0XG50AMK_1796175069 cluster:ay36) by smtp.aliyun-inc.com; Wed, 02 Dec 2026 09:31:09 +0800 Date: Wed, 2 Dec 2026 09:31:09 +0800 From: Dust Li To: Andrew Stellman , Mahanta Jambigi , "D. Wythe" , 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 Message-ID: Reply-To: dust.li@linux.alibaba.com References: <20261128191730.30196-1-bugs@stellman-greene.com> <20261201213155.65668-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201213155.65668-1-bugs@stellman-greene.com> On 2026-12-01 16:31:55, Andrew Stellman wrote: >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? IIUC, that looks like a potential issue that can never be triggered in the current Linux code? If so, I don't think it's necessary to add the bound here. I think it makes more sense to focus on reachable issues first, such as a client violating the protocol and sending invalid CLC messages to the server. Best regards, Dust