From: Oliver Neukum <oliver@neukum.org>
To: "Frank Schäfer" <fschaefer.oss@googlemail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel panic on device removal when using a workqueue and delayed_work
Date: Mon, 31 Oct 2011 11:29:25 +0100 [thread overview]
Message-ID: <201110311129.25277.oliver@neukum.org> (raw)
In-Reply-To: <4EAE77F2.80102@googlemail.com>
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?
Regards
Oliver
next prev parent reply other threads:[~2011-10-31 10:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-30 19:19 kernel panic on device removal when using a workqueue and delayed_work Frank Schäfer
2011-10-31 3:11 ` Yong Zhang
2011-10-31 10:26 ` Frank Schäfer
2011-10-31 10:29 ` Oliver Neukum [this message]
2011-11-02 20:02 ` Frank Schäfer
2011-11-02 6:31 ` Yong Zhang
2011-11-05 13:32 ` Frank Schäfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201110311129.25277.oliver@neukum.org \
--to=oliver@neukum.org \
--cc=fschaefer.oss@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.