[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/trunk@1598 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/bus/kernel/bus_iou_mgr.c
core/bus/kernel/bus_port_mgr.c

index 39dc655..96605d9 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 1cfeb67..bd8fab3 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