Re: kernel panic on device removal when using a workqueue and delayed_work

From: Frank SchÃfer
Date: Wed Nov 02 2011 - 16:02:41 EST


Am 31.10.2011 11:29, schrieb Oliver Neukum:
Am Montag, 31. Oktober 2011, 11:26:58 schrieb Frank SchÃfer:
Am 31.10.2011 04:11, schrieb Yong Zhang:
This is the first time I'm using a workqueue, so there is a good
chance that I missed something...
You should cancel the work you have armed before exit.
See cancel_delayed_work().
That's what I'm doing (see above).
Did you read the code ? ;-)
Does it work if you set a flag and resubmit the work only conditionally
on it?
What do you mean ? Which flag should I set and what's the condition to check for ?

Regards,
Frank
Regards
Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/