From: Tejun Heo <tj@kernel.org>
To: laijs@cn.fujitsu.com
Cc: linux-kernel@vger.kernel.org, js1304@gmail.com
Subject: [PATCHSET wq/for-3.10] workqueue: replace pwq_lock with wq->mutex
Date: Mon, 25 Mar 2013 17:07:23 -0700 [thread overview]
Message-ID: <1364256449-11401-1-git-send-email-tj@kernel.org> (raw)
Hello,
This patchset renames wq->flush_mutex to wq->mutex and expands it to
protect most fields which are specific to each workqueue instance.
This simplifies the locking and makes it easier to understand. The
mutex was already half there with multiple pool_workqueues support for
unbound workqueues anyway.
The patchese in this series are reshuffled / slightly updated versions
of the relevant patches in Lai's "workqueue: cleanups and better
locking for recent changes" patchset [1]. It contains the following
six patches. The descriptions are mostly rewritten.
0001-workqueue-rename-wq_mutex-to-wq_pool_mutex.patch
0002-workqueue-rename-wq-flush_mutex-to-wq-mutex.patch
0003-workqueue-protect-wq-nr_drainers-and-flags-with-wq-m.patch
0004-workqueue-protect-wq-pwqs-and-iteration-with-wq-mute.patch
0005-workqueue-protect-wq-saved_max_active-with-wq-mutex.patch
0006-workqueue-remove-pwq_lock-which-is-no-longer-used.patch
0001 is 0007 in the original set. s/wqs_mutex/wq_pool_mutex/
0002 is 0008.
0003 is 0009.
0004 is 0011.
0005 is 0012.
0006 is 0013.
These patches have been applied to wq/for-3.10.
git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-3.10
So, I changes things a bit but nothing fundamental. Other than some
renaming and reshuffling, these patches do exact the same things as
your original versions. With these applied, your and my changes
shouldn't collide too much, so let's base everything on top of this.
Thanks.
diffstat follows.
kernel/workqueue.c | 225 ++++++++++++++++++++++++-----------------------------
1 file changed, 105 insertions(+), 120 deletions(-)
--
tejun
[1] http://thread.gmane.org/gmane.linux.kernel/1459923
next reply other threads:[~2013-03-26 0:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 0:07 Tejun Heo [this message]
2013-03-26 0:07 ` [PATCH 1/6] workqueue: rename wq_mutex to wq_pool_mutex Tejun Heo
2013-03-26 0:07 ` [PATCH 2/6] workqueue: rename wq->flush_mutex to wq->mutex Tejun Heo
2013-03-26 0:07 ` [PATCH 3/6] workqueue: protect wq->nr_drainers and ->flags with wq->mutex Tejun Heo
2013-03-26 0:07 ` [PATCH 4/6] workqueue: protect wq->pwqs and iteration " Tejun Heo
2013-03-26 0:07 ` [PATCH 5/6] workqueue: protect wq->saved_max_active " Tejun Heo
2013-03-26 0:07 ` [PATCH 6/6] workqueue: remove pwq_lock which is no longer used 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=1364256449-11401-1-git-send-email-tj@kernel.org \
--to=tj@kernel.org \
--cc=js1304@gmail.com \
--cc=laijs@cn.fujitsu.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
Powered by JetHome