From: Randy Dunlap <randy.dunlap@oracle.com>
To: Tejun Heo <tj@kernel.org>
Cc: Florian Mickler <florian@mickler.org>,
lkml <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
Christoph Lameter <cl@linux-foundation.org>,
Dave Chinner <david@fromorbit.com>
Subject: Re: [PATCH UPDATED] workqueue: add documentation
Date: Fri, 10 Sep 2010 10:43:24 -0700 [thread overview]
Message-ID: <20100910104324.6079a0b3.randy.dunlap@oracle.com> (raw)
In-Reply-To: <4C8A46D9.5020303@kernel.org>
On Fri, 10 Sep 2010 16:55:21 +0200 Tejun Heo wrote:
> +3. The Design
> +Subsystems and drivers can create and queue work items through special
> +workqueue API functions as they see fit. They can influence some
> +aspects of the way the work items are executed by setting flags on the
> +workqueue they are putting the work item on. These flags include
> +things like cpu locality, reentrancy, concurrency limits and more. To
CPU
> +get a detailed overview refer to the API description of
> +alloc_workqueue() below.
> +4. Application Programming Interface (API)
> +@flags:
> +
> + WQ_NON_REENTRANT
> +
> + By default, a wq guarantees non-reentrance only on the same
> + CPU. A work may not be executed concurrently on the same CPU
work item
> + by multiple workers but is allowed to be executed concurrently
> + on multiple CPUs. This flag makes sure non-reentrance is
> + enforced across all CPUs. Work items queued to a
> + non-reentrant wq are guaranteed to be executed by at most one
> + worker system-wide at any given time.
> + WQ_CPU_INTENSIVE
> +
> + Work items of a CPU intensive wq do not contribute to the
> + concurrency level. In other words, Runnable CPU intensive
runnable
> + work items will not prevent other work items from starting
> + execution. This is useful for bound work items which are
> + expected to hog CPU cycles so that their execution is
> + regulated by the system scheduler.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
next prev parent reply other threads:[~2010-09-10 17:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-08 15:40 [PATCH] " Tejun Heo
2010-09-08 15:51 ` [PATCH UPDATED] " Tejun Heo
2010-09-09 8:02 ` Florian Mickler
2010-09-09 10:22 ` Tejun Heo
2010-09-09 18:50 ` Florian Mickler
2010-09-10 10:25 ` Tejun Heo
2010-09-10 14:26 ` Florian Mickler
2010-09-10 14:55 ` Tejun Heo
2010-09-10 17:43 ` Randy Dunlap [this message]
2010-09-12 10:50 ` Tejun Heo
2010-09-13 0:51 ` Dave Chinner
2010-09-13 8:08 ` Tejun Heo
2010-09-13 8:16 ` Florian Mickler
2010-09-13 8:27 ` Tejun Heo
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=20100910104324.6079a0b3.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=cl@linux-foundation.org \
--cc=david@fromorbit.com \
--cc=florian@mickler.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tj@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
Powered by JetHome