When a device was unmapped, thousands of invalid requests were received by the IO dispatchers, which in turned tried to send responses to the now missing device.
For solving this issue, we now check the status of the WNBD responses that are being sent, stopping the dispatchers if ERROR_NOT_FOUND is received and proceeding with the unmap.
Also, the log messages for WnbdIoctlRemove were changed as follows:
included a success message for the soft removal option
when the hard removal faces ERROR_FILE_NOT_FOUND, the log messages states that the device might have already been removed
When a device was unmapped, thousands of invalid requests were received by the IO dispatchers, which in turned tried to send responses to the now missing device.
For solving this issue, we now check the status of the WNBD responses that are being sent, stopping the dispatchers if ERROR_NOT_FOUND is received and proceeding with the unmap.
Also, the log messages for WnbdIoctlRemove were changed as follows: