[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220524114408.4bf1af38@canb.auug.org.au>
Date: Tue, 24 May 2022 11:44:08 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: David Miller <davem@...emloft.net>
Cc: Networking <netdev@...r.kernel.org>,
Guangguan Wang <guangguan.wang@...ux.alibaba.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>,
liuyacan <liuyacan@...p.netease.com>
Subject: linux-next: manual merge of the net-next tree with the net tree
Hi all,
Today's linux-next merge of the net-next tree got a conflict in:
net/smc/af_smc.c
between commit:
75c1edf23b95 ("net/smc: postpone sk_refcnt increment in connect()")
from the net tree and commit:
3aba103006bc ("net/smc: align the connect behaviour with TCP")
from the net-next tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc net/smc/af_smc.c
index d3de54b70c05,5f70642a8044..000000000000
--- a/net/smc/af_smc.c
+++ b/net/smc/af_smc.c
@@@ -1564,9 -1584,11 +1584,11 @@@ static int smc_connect(struct socket *s
if (rc && rc != -EINPROGRESS)
goto out;
- if (smc->use_fallback)
- sock_hold(&smc->sk); /* sock put in passive closing */
+ if (smc->use_fallback) {
+ sock->state = rc ? SS_CONNECTING : SS_CONNECTED;
goto out;
+ }
+ sock_hold(&smc->sk); /* sock put in passive closing */
if (flags & O_NONBLOCK) {
if (queue_work(smc_hs_wq, &smc->connect_work))
smc->connect_nonblock = 1;
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists