Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/smc/af_smc.c between commit: 07603b230895 ("net/smc: propagate file from SMC to TCP socket") from the net tree and commit: 50717a37db03 ("net/smc: nonblocking connect rework") 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 6f869ef49b32,e066899de72d..000000000000 --- a/net/smc/af_smc.c +++ b/net/smc/af_smc.c @@@ -457,9 -447,10 +455,10 @@@ static void smc_switch_to_fallback(stru /* fall back during connect */ static int smc_connect_fallback(struct smc_sock *smc, int reason_code) { - smc->use_fallback = true; + smc_switch_to_fallback(smc); smc->fallback_rsn = reason_code; smc_copy_sock_settings_to_clc(smc); + smc->connect_nonblock = 0; if (smc->sk.sk_state == SMC_INIT) smc->sk.sk_state = SMC_ACTIVE; return 0; @@@ -783,16 -780,10 +788,14 @@@ static void smc_connect_work(struct wor smc->sk.sk_err = -rc; out: - if (smc->sk.sk_err) - smc->sk.sk_state_change(&smc->sk); - else - smc->sk.sk_write_space(&smc->sk); + if (!sock_flag(&smc->sk, SOCK_DEAD)) { + if (smc->sk.sk_err) { + smc->sk.sk_state_change(&smc->sk); + } else { /* allow polling before and after fallback decision */ + smc->clcsock->sk->sk_write_space(smc->clcsock->sk); + smc->sk.sk_write_space(&smc->sk); + } + } - kfree(smc->connect_info); - smc->connect_info = NULL; release_sock(&smc->sk); } @@@ -1244,19 -1215,11 +1232,14 @@@ static void smc_listen_work(struct work struct socket *newclcsock = new_smc->clcsock; struct smc_clc_msg_accept_confirm cclc; struct smc_clc_msg_proposal *pclc; - struct smc_ib_device *ibdev; + struct smc_init_info ini = {0}; bool ism_supported = false; - struct smcd_dev *ismdev; u8 buf[SMC_CLC_MAX_LEN]; - int local_contact = 0; - unsigned short vlan; - int reason_code = 0; int rc = 0; - u8 ibport; + if (new_smc->listen_smc->sk.sk_state != SMC_LISTEN) + return smc_listen_out_err(new_smc); + if (new_smc->use_fallback) { smc_listen_out_connected(new_smc); return;
Attachment:
pgpf0zNdVl4HX.pgp
Description: OpenPGP digital signature