Message ID | 1445041610-30133-1-git-send-email-santosh.shilimkar@oracle.com |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
On (10/16/15 20:26), Santosh Shilimkar wrote: > > diff --git a/net/rds/send.c b/net/rds/send.c > + if (!test_bit(RDS_LL_SEND_FULL, &conn->c_flags)) > + queue_delayed_work(rds_wq, &conn->c_send_w, 0); A minor note- it would help to add some comments here explaining that the pong has already been added to the sendq earlier.. in the case of IB, if RDS_LL_SEND_FULL has been set, it takes some head-scratching to figure out how the pong gets sent, and a few comments could help clarify that. but other than that, the contents look good to me, thus Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 10/16/2015 6:45 PM, Sowmini Varadhan wrote: > On (10/16/15 20:26), Santosh Shilimkar wrote: >> >> diff --git a/net/rds/send.c b/net/rds/send.c >> + if (!test_bit(RDS_LL_SEND_FULL, &conn->c_flags)) >> + queue_delayed_work(rds_wq, &conn->c_send_w, 0); > > A minor note- it would help to add some comments here explaining > that the pong has already been added to the sendq earlier.. > in the case of IB, if RDS_LL_SEND_FULL has been set, it takes some > head-scratching to figure out how the pong gets sent, and a few > comments could help clarify that. > Right. The check confused you. I will update the patch and drop the check all together and add a jiffies for the queuing which should take care of it. Will post v2 with that update. > but other than that, the contents look good to me, thus > > Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> > Thanks !! regards, Santosh -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/rds/send.c b/net/rds/send.c index ee49c25..7a377a1 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -1182,9 +1182,8 @@ rds_send_pong(struct rds_connection *conn, __be16 dport) rds_stats_inc(s_send_queued); rds_stats_inc(s_send_pong); - ret = rds_send_xmit(conn); - if (ret == -ENOMEM || ret == -EAGAIN) - queue_delayed_work(rds_wq, &conn->c_send_w, 1); + if (!test_bit(RDS_LL_SEND_FULL, &conn->c_flags)) + queue_delayed_work(rds_wq, &conn->c_send_w, 0); rds_message_put(rm); return 0;