On Tue, May 31, 2005 at 01:07:03AM +0200, Oliver Neukum wrote: > > > and it prints "p->sighand == NULL" every time I exit a program while > > using the usbdevio based driver. > > > > consequently, the following patch 'fixed' the problem. Please do not > > consider this as a real fix, since there's certainly still a race > > condition left. Please use it as a hint to correctly fix the problem. > > It would be cleaner to terminate all URBs a task has submitted when the > task terminates. so for every task termination, we do a linear search over the global list of pending URB's and terminate those where urb->task == taks_to_kill? Sounds a bit expensive, especially since you don't know (before iteration) whether that task has actually ever dealt with usbdevio or not. -- - Harald Welte <[email protected]> http://gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)
Attachment:
pgpI2d7L5257q.pgp
Description: PGP signature
- References:
- [BUG] oops while completing async USB via usbdevio
- From: Harald Welte <[email protected]>
- Re: [BUG] oops while completing async USB via usbdevio
- From: Harald Welte <[email protected]>
- Re: [BUG] oops while completing async USB via usbdevio
- From: Oliver Neukum <[email protected]>
- [BUG] oops while completing async USB via usbdevio
- Prev by Date: Re: [linux-usb-devel] Re: [BUG] oops while completing async USB via usbdevio
- Next by Date: Re: Playing with SATA NCQ
- Previous by thread: Re: [BUG] oops while completing async USB via usbdevio
- Next by thread: [-mm patch] drivers/message/i2o/device.c: i2o_parm_issue has to be global
- Index(es):