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] [day] [month] [year] [list]
Message-ID: <20130207210600.GU2875@htj.dyndns.org>
Date:	Thu, 7 Feb 2013 13:06:00 -0800
From:	Tejun Heo <tj@...nel.org>
To:	Joonsoo Kim <js1304@...il.com>,
	Lai Jiangshan <laijs@...fujitsu.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH wq/for-3.9] workqueue: move nr_running into worker_pool

On Thu, Jan 24, 2013 at 11:39:44AM -0800, Tejun Heo wrote:
> As nr_running is likely to be accessed from other CPUs during
> try_to_wake_up(), it was kept outside worker_pool; however, while less
> frequent, other fields in worker_pool are accessed from other CPUs
> for, e.g., non-reentrancy check.  Also, with recent pool related
> changes, accessing nr_running matching the worker_pool isn't as simple
> as it used to be.
> 
> Move nr_running inside worker_pool.  Keep it aligned to cacheline and
> define CPU pools using DEFINE_PER_CPU_SHARED_ALIGNED().  This should
> give at least the same cacheline behavior.
> 
> get_pool_nr_running() is replaced with direct pool->nr_running
> accesses.
> 
> Signed-off-by: Tejun Heo <tj@...nel.org>
> Cc: Joonsoo Kim <js1304@...il.com>

Applied to wq/for-3.9.

Thanks.

-- 
tejun
--
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