[TIPC]: Connected send now checks socket state when retrying congested send.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Per Liden <per.liden@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3546c7508d
commit
bdd94789d2
@@ -565,6 +565,7 @@ static int send_packet(struct kiocb *iocb, struct socket *sock,
|
|||||||
return -ERESTARTSYS;
|
return -ERESTARTSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do {
|
||||||
if (unlikely(sock->state != SS_CONNECTED)) {
|
if (unlikely(sock->state != SS_CONNECTED)) {
|
||||||
if (sock->state == SS_DISCONNECTING)
|
if (sock->state == SS_DISCONNECTING)
|
||||||
res = -EPIPE;
|
res = -EPIPE;
|
||||||
@@ -573,7 +574,6 @@ static int send_packet(struct kiocb *iocb, struct socket *sock,
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
|
||||||
res = tipc_send(tsock->p->ref, m->msg_iovlen, m->msg_iov);
|
res = tipc_send(tsock->p->ref, m->msg_iovlen, m->msg_iov);
|
||||||
if (likely(res != -ELINKCONG)) {
|
if (likely(res != -ELINKCONG)) {
|
||||||
exit:
|
exit:
|
||||||
|
Reference in New Issue
Block a user