mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Feng Ye <f_ye@yahoo.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: How to wait for threaded irq handler to finish, as in work queue flush/cancel?
Date: Fri, 13 Jan 2012 21:40:48 -0800 (PST)	[thread overview]
Message-ID: <1326519648.92006.YahooMailNeo@web112707.mail.gq1.yahoo.com> (raw)
In-Reply-To: <1326519475.54455.YahooMailNeo@web112702.mail.gq1.yahoo.com>

Hello there,


I have a question regarding how to cancel threaded irq handler in a driver's suspend function.
If it's NOT threaded irq, normally you have a work queue, and in the suspend function, you call either cancel_work_sync() or flush_work(), these function will WAIT for the work queue to finish if it's in the middle of something.
However if you use threaded irq, then you don't need a work queue, then in the suspend function, I don't know if there's a simple function that can be used to cancel and wait the thread to finish?


Thanks,
Feng

       reply	other threads:[~2012-01-14  5:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1326519475.54455.YahooMailNeo@web112702.mail.gq1.yahoo.com>
2012-01-14  5:40 ` Feng Ye [this message]
2012-01-14  7:53   ` Cong Wang

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=1326519648.92006.YahooMailNeo@web112707.mail.gq1.yahoo.com \
    --to=f_ye@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®