Move ci_ca_comp_cb to kernel-only file since it's only used there. Optimize signalli...
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sat, 21 May 2005 00:03:59 +0000 (00:03 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sat, 21 May 2005 00:03:59 +0000 (00:03 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@5 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_ci_ca_shared.c
core/al/kernel/al_ci_ca.c

index 8e6f3f3..27b82e5 100644 (file)
 #include "ib_common.h"\r
 \r
 \r
-void\r
-ci_ca_comp_cb(\r
-       IN                              void                                            *cq_context );\r
-\r
 void\r
 ci_ca_process_event_cb(\r
        IN                              cl_async_proc_item_t*           p_async_item );\r
@@ -113,21 +109,6 @@ remove_ca(
 \r
 \r
 \r
-void\r
-ci_ca_comp_cb(\r
-       IN                              void                                            *cq_context )\r
-{\r
-       ib_cq_handle_t                  h_cq = (ib_cq_handle_t)cq_context;\r
-\r
-       if( h_cq->h_wait_obj )\r
-               cl_waitobj_signal( h_cq->h_wait_obj );\r
-       else\r
-               h_cq->pfn_user_comp_cb( h_cq, (void*)h_cq->obj.context );\r
-}\r
-\r
-\r
-\r
-\r
 ib_api_status_t\r
 get_port_info(\r
        IN                              al_ci_ca_t                                      *p_ci_ca )\r
index 8ceeaef..7d9f00d 100644 (file)
@@ -309,6 +309,20 @@ cleanup_ci_ca(
 \r
 \r
 \r
+void\r
+ci_ca_comp_cb(\r
+       IN                              void                                            *cq_context )\r
+{\r
+       ib_cq_handle_t                  h_cq = (ib_cq_handle_t)cq_context;\r
+\r
+       if( h_cq->h_wait_obj )\r
+               KeSetEvent( h_cq->h_wait_obj, IO_NETWORK_INCREMENT, FALSE );\r
+       else\r
+               h_cq->pfn_user_comp_cb( h_cq, (void*)h_cq->obj.context );\r
+}\r
+\r
+\r
+\r
 /*\r
  * CI CA asynchronous event callback.\r
  */\r