From: Lai Jiangshan <laijs@cn.fujitsu.com>
To: Tejun Heo <tj@kernel.org>
Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org,
akpm@linux-foundation.org, mingo@redhat.com,
lauro.venancio@openbossa.org, jak@jak-linux.org,
Jens Axboe <axboe@kernel.dk>, David Airlie <airlied@linux.ie>,
Jiri Kosina <jkosina@suse.cz>,
"David S. Miller" <davem@davemloft.net>,
Rusty Russell <rusty@rustcorp.com.au>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
David Howells <dhowells@redhat.com>
Subject: Re: [PATCH 5/6] workqueue: deprecate system_nrt[_freezable]_wq
Date: Mon, 20 Aug 2012 10:56:36 +0800 [thread overview]
Message-ID: <5031A764.8090806@cn.fujitsu.com> (raw)
In-Reply-To: <1344908986-18152-6-git-send-email-tj@kernel.org>
On 08/14/2012 09:49 AM, Tejun Heo wrote:
> system_nrt[_freezable]_wq are now spurious. Mark them deprecated and
> convert all users to system[_freezable]_wq.
>
> If you're cc'd and wondering what's going on: Now all workqueues are
> non-reentrant, so there's no reason to use system_nrt[_freezable]_wq.
> Please use system[_freezable]_wq instead.
>
> This patch doesn't make any functional difference.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Jens Axboe <axboe@kernel.dk>
> Cc: David Airlie <airlied@linux.ie>
> Cc: Jiri Kosina <jkosina@suse.cz>
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: Rusty Russell <rusty@rustcorp.com.au>
> Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
> Cc: David Howells <dhowells@redhat.com>
> ---
> block/blk-throttle.c | 7 +++----
> block/genhd.c | 10 +++++-----
> drivers/gpu/drm/drm_crtc_helper.c | 6 +++---
> drivers/hid/hid-wiimote-ext.c | 2 +-
> drivers/mmc/core/host.c | 4 ++--
> drivers/net/virtio_net.c | 12 ++++++------
> include/linux/workqueue.h | 4 ++--
> kernel/srcu.c | 4 ++--
> security/keys/gc.c | 8 ++++----
> security/keys/key.c | 2 +-
> 10 files changed, 29 insertions(+), 30 deletions(-)
> diff --git a/kernel/srcu.c b/kernel/srcu.c
> index 2095be3..97c465e 100644
> --- a/kernel/srcu.c
> +++ b/kernel/srcu.c
> @@ -379,7 +379,7 @@ void call_srcu(struct srcu_struct *sp, struct rcu_head *head,
> rcu_batch_queue(&sp->batch_queue, head);
> if (!sp->running) {
> sp->running = true;
> - queue_delayed_work(system_nrt_wq, &sp->work, 0);
> + schedule_delayed_work(&sp->work, 0);
> }
> spin_unlock_irqrestore(&sp->queue_lock, flags);
> }
> @@ -631,7 +631,7 @@ static void srcu_reschedule(struct srcu_struct *sp)
> }
>
> if (pending)
> - queue_delayed_work(system_nrt_wq, &sp->work, SRCU_INTERVAL);
> + schedule_delayed_work(&sp->work, SRCU_INTERVAL);
> }
>
> /*
Acked-By: Lai Jiangshan <laijs@cn.fujitsu.com>
next prev parent reply other threads:[~2012-08-20 2:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 1:49 [PATCHSET] workqueue: make all workqueues non-reentrant Tejun Heo
2012-08-14 1:49 ` [PATCH 1/6] " Tejun Heo
2012-08-14 1:49 ` [PATCH 2/6] workqueue: gut flush[_delayed]_work_sync() Tejun Heo
2012-08-14 1:49 ` [PATCH 3/6] workqueue: gut system_nrt[_freezable]_wq() Tejun Heo
2012-08-14 1:49 ` [PATCH 5/6] workqueue: deprecate system_nrt[_freezable]_wq Tejun Heo
2012-08-20 2:56 ` Lai Jiangshan [this message]
2012-08-14 1:49 ` [PATCH 6/6] workqueue: deprecate WQ_NON_REENTRANT Tejun Heo
2012-08-14 17:24 ` Marc Dietrich
2012-08-14 17:35 ` Tejun Heo
2012-08-20 21:54 ` [PATCHSET] workqueue: make all workqueues non-reentrant 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=5031A764.8090806@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=davem@davemloft.net \
--cc=dhowells@redhat.com \
--cc=jak@jak-linux.org \
--cc=jkosina@suse.cz \
--cc=lauro.venancio@openbossa.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=rusty@rustcorp.com.au \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.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