lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 20 Aug 2012 10:56:36 +0800
From:	Lai Jiangshan <laijs@...fujitsu.com>
To:	Tejun Heo <tj@...nel.org>
CC:	linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
	akpm@...ux-foundation.org, mingo@...hat.com,
	lauro.venancio@...nbossa.org, jak@...-linux.org,
	Jens Axboe <axboe@...nel.dk>, David Airlie <airlied@...ux.ie>,
	Jiri Kosina <jkosina@...e.cz>,
	"David S. Miller" <davem@...emloft.net>,
	Rusty Russell <rusty@...tcorp.com.au>,
	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	David Howells <dhowells@...hat.com>
Subject: Re: [PATCH 5/6] workqueue: deprecate system_nrt[_freezable]_wq

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@...nel.org>
> Cc: Jens Axboe <axboe@...nel.dk>
> Cc: David Airlie <airlied@...ux.ie>
> Cc: Jiri Kosina <jkosina@...e.cz>
> Cc: "David S. Miller" <davem@...emloft.net>
> Cc: Rusty Russell <rusty@...tcorp.com.au>
> Cc: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
> Cc: David Howells <dhowells@...hat.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@...fujitsu.com>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ