cloudbase / wnbd

Windows Ceph RBD NBD driver
GNU Lesser General Public License v2.1
58 stars 26 forks source link

libwnbd: Unmap invalid requests fix #72

Closed stefan-chivu closed 1 year ago

stefan-chivu commented 1 year ago

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: