Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3314188rwe; Mon, 29 Aug 2022 09:17:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR69u76aXXRLR4KX/mKNAUHACNYvvLUVPv7IgOzKk/iz6iXtHNL39gW/6DhPMlGyTd3IPXz6 X-Received: by 2002:a05:6402:510:b0:448:1649:1f2c with SMTP id m16-20020a056402051000b0044816491f2cmr10087202edv.139.1661789870343; Mon, 29 Aug 2022 09:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661789870; cv=none; d=google.com; s=arc-20160816; b=HbDHvRNZzdBWI1YY4Ybftr7z6Y3+gakJf5K1BTRp+aFUZI42xFpKeu6gQINr/n/rXW lbmXtHNiUyfYg2qXTN4DM5Clw3lOWhpSxR/bSSpTu6mT5r4T6wtbJQ2+buGuFM4Xtne1 HYgAp0Tnp1Qa3JZ6Hq40yySQmlDAf1MXuqsow5VHO4/IxxY4BPXn9nKamNbKGITCs5h5 pxKmyZaZzL9ae9LmfUVO7CTm5hHoTFtAPlDpSSAG/mxCFNlTs/un2IAYdFEf1uXdJBuV mEBK15e+PiTAIQsk9IHFg275df2HSimghdgALdTIqs590Pm91erscg0lGyPeIvmVitwE rjWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date; bh=pnr/fRadzGV5ILghCynH2+7liCtEZ63xIsbETltQWV4=; b=hvdz5QhJh3BlZ1JINJLt0wpDkCnOfDPJvV5SS4yyzUa0sTILj1quPGDMzdRLgKy0Kq Rs8zHc+929nYkp1iaszyQVpX4xJ8CyJNbwLMlWJvQyEHPVLFLBs+merjjNpR/5k5Y5hN ovzedgtoCw2mGbQ3AzXX7B/T8+5I3Anv6Xyqhin9QQIK+5aeoF/G4xTnrMfBjMq6x6yx c9W2G7mlYqcFD00uSwprLs5nACIT1tR1gbE8WGipRduoOSOzKcLCkH9/tM3RgiTQ9XBb pdJ/CI7J1IOSKOxqCBdioEW/w1UgO7Coqc6L6piYsn1fd1tko7bKNwiQosuMlyalJkQY iLsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp38-20020a1709073e2600b0072fa13ddca0si6860193ejc.229.2022.08.29.09.17.19; Mon, 29 Aug 2022 09:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbiH2QA5 (ORCPT + 99 others); Mon, 29 Aug 2022 12:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiH2QAz (ORCPT ); Mon, 29 Aug 2022 12:00:55 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7692165554; Mon, 29 Aug 2022 09:00:51 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=tonylu@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VNg0tWl_1661788845; Received: from localhost(mailfrom:tonylu@linux.alibaba.com fp:SMTPD_---0VNg0tWl_1661788845) by smtp.aliyun-inc.com; Tue, 30 Aug 2022 00:00:46 +0800 Date: Tue, 30 Aug 2022 00:00:45 +0800 From: Tony Lu To: liuyacan@corp.netease.com Cc: kgraul@linux.ibm.com, davem@davemloft.net, wenjia@linux.ibm.com, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net/smc: Remove redundant refcount increase Message-ID: Reply-To: Tony Lu References: <20220829145329.2751578-1-liuyacan@corp.netease.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220829145329.2751578-1-liuyacan@corp.netease.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 29, 2022 at 10:53:29PM +0800, liuyacan@corp.netease.com wrote: > From: liuyacan > > For passive connections, the refcount increment has been done in > smc_clcsock_accept()-->smc_sock_alloc(). > > Fixes: 3b2dec2603d5("net/smc: restructure client and server code in af_smc") > Signed-off-by: liuyacan > --- > net/smc/af_smc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c > index 79c1318af..0939cc3b9 100644 > --- a/net/smc/af_smc.c > +++ b/net/smc/af_smc.c > @@ -1855,7 +1855,6 @@ static void smc_listen_out_connected(struct smc_sock *new_smc) > { > struct sock *newsmcsk = &new_smc->sk; > > - sk_refcnt_debug_inc(newsmcsk); > if (newsmcsk->sk_state == SMC_INIT) Thank you for the fixes, I will test it in the CI. Thanks. Tony Lu