Re: [PATCH] usb: storage: add shutdown function for usb storage driver

From: Oliver Neukum
Date: Wed Oct 25 2023 - 05:07:16 EST


On 24.10.23 21:23, Alan Stern wrote:
Since USB class-device drivers don't have ->shutdown callbacks (there is
no shutdown() method in struct usb_driver), they don't know what's going
on while a shutdown or reboot is in progress. All they see is a bunch
of errors.

Does this solve the issue? You'd have to flush the cache on the SCSI
device further down in the tree, if you want this done properly.

Regards
Oliver