Skip to content

Commit

Permalink
RDS: Update comments in rds_send_xmit()
Browse files Browse the repository at this point in the history
Update comments to reflect changes in previous commit.

Keeping as separate commits due to different authorship.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent 9e29db0 commit ce47f52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/rds/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,14 @@ int rds_send_xmit(struct rds_connection *conn)
/*
* Other senders will see we have c_send_lock and exit. We
* need to recheck the send queue and race again for c_send_lock
* to make sure messages don't just sit on the send queue.
* to make sure messages don't just sit on the send queue, if
* somebody hasn't already beat us into the loop.
*
* If the transport cannot continue (i.e ret != 0), then it must
* call us when more room is available, such as from the tx
* completion handler.
*/
if (ret == 0) {
/* A simple bit test would be way faster than taking the
* spin lock */
smp_mb();
if (!list_empty(&conn->c_send_queue)) {
rds_stats_inc(s_send_lock_queue_raced);
Expand Down

0 comments on commit ce47f52

Please sign in to comment.