Commit a32f07d2 authored by David S. Miller's avatar David S. Miller

Merge branch 'SMC-fixes'

Tony Lu says:

====================
Fixes for SMC

There are some fixes for SMC.

v1->v2:
- fix wrong email address.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 90a881fc f3a3a0fe
...@@ -1057,7 +1057,7 @@ static void smc_connect_work(struct work_struct *work) ...@@ -1057,7 +1057,7 @@ static void smc_connect_work(struct work_struct *work)
if (smc->clcsock->sk->sk_err) { if (smc->clcsock->sk->sk_err) {
smc->sk.sk_err = smc->clcsock->sk->sk_err; smc->sk.sk_err = smc->clcsock->sk->sk_err;
} else if ((1 << smc->clcsock->sk->sk_state) & } else if ((1 << smc->clcsock->sk->sk_state) &
(TCPF_SYN_SENT | TCP_SYN_RECV)) { (TCPF_SYN_SENT | TCPF_SYN_RECV)) {
rc = sk_stream_wait_connect(smc->clcsock->sk, &timeo); rc = sk_stream_wait_connect(smc->clcsock->sk, &timeo);
if ((rc == -EPIPE) && if ((rc == -EPIPE) &&
((1 << smc->clcsock->sk->sk_state) & ((1 << smc->clcsock->sk->sk_state) &
......
...@@ -1822,7 +1822,7 @@ void smc_llc_link_active(struct smc_link *link) ...@@ -1822,7 +1822,7 @@ void smc_llc_link_active(struct smc_link *link)
link->smcibdev->ibdev->name, link->ibport); link->smcibdev->ibdev->name, link->ibport);
link->state = SMC_LNK_ACTIVE; link->state = SMC_LNK_ACTIVE;
if (link->lgr->llc_testlink_time) { if (link->lgr->llc_testlink_time) {
link->llc_testlink_time = link->lgr->llc_testlink_time * HZ; link->llc_testlink_time = link->lgr->llc_testlink_time;
schedule_delayed_work(&link->llc_testlink_wrk, schedule_delayed_work(&link->llc_testlink_wrk,
link->llc_testlink_time); link->llc_testlink_time);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment