From: "Kenneth Aafløy" <lists@kenneth.aafloy.net>
To: arun.prabha@wipro.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Scheduling tasklets from process context...
Date: Wed, 6 Apr 2005 05:07:15 +0200 [thread overview]
Message-ID: <200504060507.15560.lists@kenneth.aafloy.net> (raw)
In-Reply-To: <8F94FD7C111E3D43BA3C7CF89CB50E92012AA7B5@BLR-EC-2K3MSG.wipro.com>
On Wednesday 06 April 2005 04:50, you wrote:
> Since tasklets are typically used for bottom half processing, is it
> acceptable/recommended that they be scheduled from a process context
> (say an ioctl handler)?
>
> Should one try to minimize such scheduling and try to do things in process
> context if possible, as tasklets run in interrupt context? Or is the driver
> writer free to use the tasklets at will? What is recommended here?
A tasklet does not run in interrupt context, it runs as a high priority thread,
that is scheduled from either user or interrupt context. The purpose is mostly
to defer workloads from interrupt context, to reduce the time spent with
interrupts disabled.
It would make sense to defer work from userspace to a tasklet if the hardware
takes an unusual amount of time to process the userspace data.
Correct me if I'm wrong :)
Kenneth
next prev parent reply other threads:[~2005-04-06 3:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-06 2:50 arun.prabha
2005-04-06 3:07 ` Kenneth Aafløy [this message]
2005-04-06 16:46 ` Roland Dreier
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=200504060507.15560.lists@kenneth.aafloy.net \
--to=lists@kenneth.aafloy.net \
--cc=arun.prabha@wipro.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®