Disk drive doesn't remove partition children PDOs

Hi All,

I have a problem with the disk drive.
When I disconnect a disk from the HBA, the PDOs created for the disk Partitions by the parent disk FDO, are NOT removed.
I receive Pnp SURPRISE_REMOVAL for all the partitions PDOs, then the parent disk FDO receive Pnp SURPRISE_REMOVAL and REMOVE_DEVICE, but when receiving REMOVE_DEVICE for the parent disk FDO, the children PDOs are not removed by the FDO.
After the remove device no REMOVE is send to the children PDOs.
Is any one knows this problem ?

I check the Toaster bus driver and see the next comments:

// Typically the system removes all the children before
// removing the parent FDO. If for any reason child Pdos are
// still present we will destroy them explicitly, with one exception -
// we will not delete the PDOs that are in SurpriseRemovePending state.

Why children Pdos are not deleted if they are in SurpriseRemovePending state ?
Should the Pnp Manager send REMOVE_DEVICE to the children PDOs ?
In this case why the PDO doesn’t receive REMOVE_DEVICE ?

Thanks,
Gabriel.
This mail was sent via storeage.com

************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************

Is this your own disk driver? Have you reported the PDOs missing in your
response to QueryDeviceRelations/BusRelations? Are there open handles to
your PDOs?

=====================
Mark Roddy

-----Original Message-----
From: Gabriel Mizrahi [mailto:xxxxx@storeage.com]
Sent: Tuesday, May 18, 2004 7:30 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Disk drive doesn’t remove partition children PDOs

Hi All,

I have a problem with the disk drive.
When I disconnect a disk from the HBA, the PDOs created for
the disk Partitions by the parent disk FDO, are NOT removed.
I receive Pnp SURPRISE_REMOVAL for all the partitions PDOs,
then the parent disk FDO receive Pnp SURPRISE_REMOVAL and
REMOVE_DEVICE, but when receiving REMOVE_DEVICE for the
parent disk FDO, the children PDOs are not removed by the FDO.
After the remove device no REMOVE is send to the children PDOs.
Is any one knows this problem ?

I check the Toaster bus driver and see the next comments:

// Typically the system removes all the children before
// removing the parent FDO. If for any reason child Pdos are
// still present we will destroy them explicitly,
with one exception -
// we will not delete the PDOs that are in
SurpriseRemovePending state.

Why children Pdos are not deleted if they are in
SurpriseRemovePending state ?
Should the Pnp Manager send REMOVE_DEVICE to the children PDOs ?
In this case why the PDO doesn’t receive REMOVE_DEVICE ?

Thanks,
Gabriel.
This mail was sent via storeage.com

**************************************************************
**********************
This footnote confirms that this email message has been
scanned by PineApp Mail-SeCure for the presence of malicious
code, vandals & computer viruses.
**************************************************************
**********************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
xxxxx@lists.osr.com

Hi Mark,

My driver is a virtual bus driver that creates disk PDOs.
When I disconnect the HBA I report for the disk PDOs missing in the QueryDeviceRelations/BusRelations, for the PDOs created by the virtual bus.
The problem is that the PDOs created by the FDO of the disk doesn’t remove the PDOs of the partitions. This problem also occurs in the Microsoft disk drive.
I check in the Device Tree and saw that the PDOs of the disk are removed but the PDOs for the partitions are not removed.
I check handles and all are closed.

Thanks,
Gabriel.

-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Tuesday, May 18, 2004 14:45
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Disk drive doesn’t remove partition children PDOs

Is this your own disk driver? Have you reported the PDOs missing in your
response to QueryDeviceRelations/BusRelations? Are there open handles to
your PDOs?

=====================
Mark Roddy

-----Original Message-----
From: Gabriel Mizrahi [mailto:xxxxx@storeage.com]
Sent: Tuesday, May 18, 2004 7:30 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Disk drive doesn’t remove partition children PDOs

Hi All,

I have a problem with the disk drive.
When I disconnect a disk from the HBA, the PDOs created for
the disk Partitions by the parent disk FDO, are NOT removed.
I receive Pnp SURPRISE_REMOVAL for all the partitions PDOs,
then the parent disk FDO receive Pnp SURPRISE_REMOVAL and
REMOVE_DEVICE, but when receiving REMOVE_DEVICE for the
parent disk FDO, the children PDOs are not removed by the FDO.
After the remove device no REMOVE is send to the children PDOs.
Is any one knows this problem ?

I check the Toaster bus driver and see the next comments:

// Typically the system removes all the children before
// removing the parent FDO. If for any reason child Pdos are
// still present we will destroy them explicitly,
with one exception -
// we will not delete the PDOs that are in
SurpriseRemovePending state.

Why children Pdos are not deleted if they are in
SurpriseRemovePending state ?
Should the Pnp Manager send REMOVE_DEVICE to the children PDOs ?
In this case why the PDO doesn’t receive REMOVE_DEVICE ?

Thanks,
Gabriel.
This mail was sent via storeage.com

**************************************************************
**********************
This footnote confirms that this email message has been
scanned by PineApp Mail-SeCure for the presence of malicious
code, vandals & computer viruses.
**************************************************************
**********************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@store-age.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

*** IMPORTANT: Do not open attachments from unrecognized senders ***

******************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or the
sender immediately and do not disclose the contents to any one or make copies.

******************************************************************************************

************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************

This mail was sent via storeage.com

************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************