[USBSTOR] Remove workarounds for old storage stack

This commit is contained in:
Victor Perevertkin 2020-12-06 23:32:29 +03:00
parent aa05649902
commit 39c48a4d91
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
3 changed files with 1 additions and 21 deletions

View file

@ -173,13 +173,8 @@ USBSTOR_HandleInternalDeviceControl(
{
DPRINT1("SRB_FUNCTION_FLUSH / SRB_FUNCTION_FLUSH_QUEUE / SRB_FUNCTION_SHUTDOWN\n");
// HACK: don't flush pending requests
#if 0 // we really need a proper storage stack
//
// wait for pending requests to finish
//
USBSTOR_QueueWaitForPendingRequests(PDODeviceExtension->LowerDeviceObject);
#endif
Request->SrbStatus = SRB_STATUS_SUCCESS;
Status = STATUS_SUCCESS;

View file

@ -327,15 +327,7 @@ USBSTOR_FdoHandlePnp(
case IRP_MN_QUERY_STOP_DEVICE:
case IRP_MN_QUERY_REMOVE_DEVICE:
{
#if 0
//
// we can if nothing is pending
//
if (DeviceExtension->IrpPendingCount != 0 ||
DeviceExtension->ActiveSrb != NULL)
#else
if (TRUE)
#endif
if (DeviceExtension->IrpPendingCount != 0 || DeviceExtension->ActiveSrb != NULL)
{
/* We have pending requests */
DPRINT1("Failing removal/stop request due to pending requests present\n");

View file

@ -604,14 +604,7 @@ USBSTOR_PdoHandlePnp(
case IRP_MN_QUERY_REMOVE_DEVICE:
case IRP_MN_QUERY_STOP_DEVICE:
{
#if 0
//
// if we're not claimed it's ok
//
if (DeviceExtension->Claimed)
#else
if (TRUE)
#endif
{
Status = STATUS_UNSUCCESSFUL;
DPRINT1("[USBSTOR] Request %x fails because device is still claimed\n", IoStack->MinorFunction);