net/smc: take link down instead of terminating the link group
Use the introduced link down processing in all places where the link group is terminated and take down the affected link only. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Reviewed-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
541afa10c1
commit
87523930a1
@@ -283,7 +283,7 @@ static int smc_tx_rdma_write(struct smc_connection *conn, int peer_rmbe_offset,
|
||||
rdma_wr->rkey = lgr->rtokens[conn->rtoken_idx][link->link_idx].rkey;
|
||||
rc = ib_post_send(link->roce_qp, &rdma_wr->wr, NULL);
|
||||
if (rc)
|
||||
smc_lgr_terminate_sched(lgr);
|
||||
smcr_link_down_cond_sched(link);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user