USB Device Disconnect During I/O: Drain Callbacks Before Releasing Driver State
USB disconnect must close the submission path, finish or cancel outstanding requests, and drain their callbacks before releasing the state those callbacks use. Cancelling a transfer is not the same as waiting for its completion handler. An open file or queued work item can also outlive the physical device. Applicability: this guide targets Linux v6.12…