public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Frank Schäfer" <fschaefer.oss@googlemail.com>
To: Oliver Neukum <oliver@neukum.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel panic on device removal when using a workqueue and delayed_work
Date: Wed, 02 Nov 2011 21:02:23 +0100	[thread overview]
Message-ID: <4EB1A1CF.7090300@googlemail.com> (raw)
In-Reply-To: <201110311129.25277.oliver@neukum.org>

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


  reply	other threads:[~2011-11-02 20:02 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
2011-11-02 20:02       ` Frank Schäfer [this message]
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=4EB1A1CF.7090300@googlemail.com \
    --to=fschaefer.oss@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oliver@neukum.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox