Module Name: src Committed By: riastradh Date: Sun Jul 29 01:59:46 UTC 2018
Modified Files: src/sys/dev/usb: usb.c usbdi.h Log Message: New function usb_rem_task_wait(dev, task, queue). If task is scheduled to run, removes it from the queue. If it may have already begun to run, waits for it to complete. Caller must guarantee it will not switch to another queue. If caller guarantees it will not be scheduled again, then usb_rem_task_wait guarantees it is not running on return. This will enable us to fix a litany of bugs in detach where we currently fail to wait for a pending task. To generate a diff of this commit: cvs rdiff -u -r1.169 -r1.170 src/sys/dev/usb/usb.c cvs rdiff -u -r1.92 -r1.93 src/sys/dev/usb/usbdi.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.