]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
Refresh of dapl-queue
authorSean Hefty <sean.hefty@intel.com>
Fri, 5 Feb 2010 00:29:46 +0000 (16:29 -0800)
committerSean Hefty <sean.hefty@intel.com>
Fri, 5 Feb 2010 00:29:46 +0000 (16:29 -0800)
trunk/ulp/dapl2/dapl/openib_scm/cm.c

index 00995f0f6f6337f0fc605b54b354c3d988450711..1d7a8dc4d28f37a11e63aec7f707d3e39c871575 100644 (file)
@@ -391,15 +391,17 @@ notify_thread:
 /* queue socket for processing CM work */\r
 static void dapli_cm_queue(struct ib_cm_handle *cm_ptr)\r
 {\r
+       DAPL_HCA *hca_ptr = cm_ptr->hca;\r
+\r
        /* add to work queue for cr thread processing */\r
        dapl_llist_init_entry((DAPL_LLIST_ENTRY *) & cm_ptr->entry);\r
-       dapl_os_lock(&cm_ptr->hca->ib_trans.lock);\r
-       dapl_llist_add_tail(&cm_ptr->hca->ib_trans.list,\r
+       dapl_os_lock(&hca->ib_trans.lock);\r
+       dapl_llist_add_tail(&hca->ib_trans.list,\r
                            (DAPL_LLIST_ENTRY *) & cm_ptr->entry, cm_ptr);\r
-       dapl_os_unlock(&cm_ptr->hca->ib_trans.lock);\r
+       dapl_os_unlock(&hca->ib_trans.lock);\r
 \r
        /* wakeup CM work thread */\r
-       send(cm_ptr->hca->ib_trans.scm[1], "w", sizeof "w", 0);\r
+       send(hca->ib_trans.scm[1], "w", sizeof "w", 0);\r
 }\r
 \r
 /*\r