cloudbase / wnbd

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

driver: clean up IO queue when resetting adapter #33

Closed petrutlucian94 closed 3 years ago

petrutlucian94 commented 3 years ago

When hitting timeouts, Storport resets the adapter. NBD replies don't include the IO size so we keep that information around when resetting the adapter. We don't need the payload itself, just the size so that we can tell where the next NBD header starts.

We don't have to do this for the IOCTL based IO channel, in which case we're going to clean up the IO queue.

Signed-off-by: Lucian Petrut lpetrut@cloudbasesolutions.com

aserdean commented 3 years ago

Acked-by: Alin Gabriel Serdean aserdean@cloudbasesolutions.com