[IBBUS] Add back invalidation of Device Removal Relations as they were incorrectly...
[mirror/winof/.git] / core / bus / kernel / bus_iou_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