Re: ugen(4): wait everyone to finish i/o in ugen_detach()

2020-04-09 Thread Martin Pieuchot
On 09/04/20(Thu) 20:07, Vitaliy Makkoveev wrote: > usb_detach_wait() will simply wait usb_detach_wakeup() for 60 sec. So > ugen_detach() will continue to destroy device context before threads > finish their io. Is it a theory or is it a fact? If it's a theory how can one be sure the proposed

ugen(4): wait everyone to finish i/o in ugen_detach()

2020-04-09 Thread Vitaliy Makkoveev
usb_detach_wait() will simply wait usb_detach_wakeup() for 60 sec. So ugen_detach() will continue to destroy device context before threads finish their io. Index: sys/dev/usb/ugen.c === RCS file: /cvs/src/sys/dev/usb/ugen.c,v