Skip to content

Commit

Permalink
RDS: Get pong working again
Browse files Browse the repository at this point in the history
Call send_xmit() directly from pong()

Set pongs as op_active

Signed-off-by: Andy Grover <andy.grover@oracle.com>
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent a40aa92 commit acfcd4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/rds/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ rds_send_pong(struct rds_connection *conn, __be16 dport)
}

rm->m_daddr = conn->c_faddr;
rm->data.op_active = 1;

/* If the connection is down, trigger a connect. We may
* have scheduled a delayed reconnect however - in this case
Expand Down Expand Up @@ -1135,7 +1136,9 @@ rds_send_pong(struct rds_connection *conn, __be16 dport)
rds_stats_inc(s_send_queued);
rds_stats_inc(s_send_pong);

queue_delayed_work(rds_wq, &conn->c_send_w, 0);
if (!test_bit(RDS_LL_SEND_FULL, &conn->c_flags))
rds_send_xmit(conn);

rds_message_put(rm);
return 0;

Expand Down

0 comments on commit acfcd4d

Please sign in to comment.