SCSI TMF for lun/bus reset

Hi All,

I want to write application/tool which can do lun reset or bus reset.
I am using IOCTL_STORAGE_BUS_RESET ioctl for this purpose.
Here IOCTL is issued to port driver device [\.\scsix] and operaion complete with success but IO which is
running on same device is not failed/terminated.
Expected result of reset operaion is that all I/O [pending/new] on the device should be failed.

Am I missing anything on this?

I am referring to old post on OSR. Here is the link,
http://www.osronline.com/showthread.cfm?link=208768

Regard,
Amit

Which kind of device is the HBA?

It’s a SCSI device, HBA is Qlogic. Did you got my query?

What PathId do you supply?

PathId is extracted by sending IOCTL_GET_SCSI_ADDRESS and same pathId is passed for reset operation.

Could it be possible that the disk class driver is retrying the request?
Based on the class driver sample, SRB_STATUS_BUS_RESET and SRB_STATUS_ABORTED are retried, which could be some of the posible staus values returned by storport/miniport.

>Could it be possible that the disk class driver is retrying the request?

That’s the most likely explanation.