]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IBBUS] Add back invalidation of Device Removal Relations as they were incorrectly...
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 15 Sep 2008 16:50:37 +0000 (16:50 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 15 Sep 2008 16:50:37 +0000 (16:50 +0000)
  bus_port_mgr.c
  bus_iou_mgr.c

git-svn-id: svn://openib.tc.cornell.edu/gen1@1598 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/WOF2-0/trunk/core/bus/kernel/bus_iou_mgr.c
branches/WOF2-0/trunk/core/bus/kernel/bus_port_mgr.c
trunk/core/bus/kernel/bus_iou_mgr.c
trunk/core/bus/kernel/bus_port_mgr.c

index 39dc6558a1e835ddcea5da768585622a8bc5e30c..96605d93239b79dd25b0240bef88e1c27d0ce861 100644 (file)
@@ -816,6 +816,10 @@ iou_mgr_iou_add(
        IoInvalidateDeviceRelations(\r
                        p_iou_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        BUS_EXIT( BUS_DBG_PNP );\r
 \r
        return IB_SUCCESS;\r
@@ -904,6 +908,10 @@ iou_mgr_iou_remove(
                                p_ext->cl_ext.vfptr_pnp_po->identity, p_ext, p_ext->b_present,\r
                                p_ext->b_reported_missing ) );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        /* Invalidate bus relations for the HCA. */\r
        IoInvalidateDeviceRelations(\r
                p_ext->h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
index 1cfeb675b50e952051b21ae395e56a67855faffd..bd8fab385b180430d10a76c799851ded4a1b1286 100644 (file)
@@ -926,6 +926,10 @@ port_mgr_port_add(
        IoInvalidateDeviceRelations(\r
                p_port_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        BUS_EXIT( BUS_DBG_PNP );\r
        return IB_SUCCESS;\r
 }\r
@@ -1120,6 +1124,10 @@ cl_status_t _port_mgr_pkey_add( IN       pkey_array_t    *req_pkeys,
        IoInvalidateDeviceRelations(\r
                pmatched_guid_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        BUS_EXIT( BUS_DBG_PNP );\r
        return CL_SUCCESS;\r
 }\r
@@ -1229,6 +1237,10 @@ port_mgr_port_remove(
                p_ext->cl_ext.vfptr_pnp_po->identity, p_ext->cl_ext.p_self_do, p_ext,\r
                p_ext->b_present, p_ext->b_reported_missing ) );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        /* Invalidate bus relations for the HCA. */\r
        IoInvalidateDeviceRelations(\r
                p_ext->h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
index 39dc6558a1e835ddcea5da768585622a8bc5e30c..96605d93239b79dd25b0240bef88e1c27d0ce861 100644 (file)
@@ -816,6 +816,10 @@ iou_mgr_iou_add(
        IoInvalidateDeviceRelations(\r
                        p_iou_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        BUS_EXIT( BUS_DBG_PNP );\r
 \r
        return IB_SUCCESS;\r
@@ -904,6 +908,10 @@ iou_mgr_iou_remove(
                                p_ext->cl_ext.vfptr_pnp_po->identity, p_ext, p_ext->b_present,\r
                                p_ext->b_reported_missing ) );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        /* Invalidate bus relations for the HCA. */\r
        IoInvalidateDeviceRelations(\r
                p_ext->h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
index 1cfeb675b50e952051b21ae395e56a67855faffd..bd8fab385b180430d10a76c799851ded4a1b1286 100644 (file)
@@ -926,6 +926,10 @@ port_mgr_port_add(
        IoInvalidateDeviceRelations(\r
                p_port_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        BUS_EXIT( BUS_DBG_PNP );\r
        return IB_SUCCESS;\r
 }\r
@@ -1120,6 +1124,10 @@ cl_status_t _port_mgr_pkey_add( IN       pkey_array_t    *req_pkeys,
        IoInvalidateDeviceRelations(\r
                pmatched_guid_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        BUS_EXIT( BUS_DBG_PNP );\r
        return CL_SUCCESS;\r
 }\r
@@ -1229,6 +1237,10 @@ port_mgr_port_remove(
                p_ext->cl_ext.vfptr_pnp_po->identity, p_ext->cl_ext.p_self_do, p_ext,\r
                p_ext->b_present, p_ext->b_reported_missing ) );\r
 \r
+       /* Invalidate removal relations for the bus driver. */\r
+       IoInvalidateDeviceRelations(\r
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );\r
+\r
        /* Invalidate bus relations for the HCA. */\r
        IoInvalidateDeviceRelations(\r
                p_ext->h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );\r