dlm: clear correct init bit during sctp setup
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 14 Jun 2013 09:56:09 +0000 (04:56 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 14 Jun 2013 18:07:10 +0000 (13:07 -0500)
We were clearing the base con's init pending flags, but the
con for the node was the one with the pending bit set.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c

index d0ccd2f..efbe7af 100644 (file)
@@ -664,7 +664,7 @@ static void process_sctp_notification(struct connection *con,
 
                        /* Send any pending writes */
                        clear_bit(CF_CONNECT_PENDING, &new_con->flags);
-                       clear_bit(CF_INIT_PENDING, &con->flags);
+                       clear_bit(CF_INIT_PENDING, &new_con->flags);
                        if (!test_and_set_bit(CF_WRITE_PENDING, &new_con->flags)) {
                                queue_work(send_workqueue, &new_con->swork);
                        }