]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
RDS: Update comments in rds_send_xmit()
authorAndy Grover <andy.grover@oracle.com>
Fri, 16 Apr 2010 00:19:29 +0000 (17:19 -0700)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:12:25 +0000 (18:12 -0700)
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>
net/rds/send.c

index 663fd60b40cf520e29c4f99e22521330d8f8103f..8e3fd9981c2ea190d865d697a008ef54ccc61f38 100644 (file)
@@ -353,15 +353,14 @@ restart:
        /*
         * 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);