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:	Tue, 19 Feb 2013 10:42:53 -0000
From:	"David Laight" <David.Laight@...LAB.COM>
To:	"Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>,
	"Michel Lespinasse" <walken@...gle.com>
Cc:	<tglx@...utronix.de>, <peterz@...radead.org>, <tj@...nel.org>,
	<oleg@...hat.com>, <paulmck@...ux.vnet.ibm.com>,
	<rusty@...tcorp.com.au>, <mingo@...nel.org>,
	<akpm@...ux-foundation.org>, <namhyung@...nel.org>,
	<rostedt@...dmis.org>, <wangyun@...ux.vnet.ibm.com>,
	<xiaoguangrong@...ux.vnet.ibm.com>, <rjw@...k.pl>, <sbw@....edu>,
	<fweisbec@...il.com>, <linux@....linux.org.uk>,
	<nikunj@...ux.vnet.ibm.com>, <linux-pm@...r.kernel.org>,
	<linux-arch@...r.kernel.org>,
	<linux-arm-kernel@...ts.infradead.org>,
	<linuxppc-dev@...ts.ozlabs.org>, <netdev@...r.kernel.org>,
	<linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
	<vincent.guittot@...aro.org>
Subject: RE: [PATCH v6 08/46] CPU hotplug: Provide APIs to prevent CPU offline from atomic context

> I wouldn't go that far... ;-) Unfairness is not a show-stopper right?
> IMHO, the warning/documentation should suffice for anybody wanting to
> try out this locking scheme for other use-cases.

I presume that by 'fairness' you mean 'write preference'?

I'd not sure how difficult it would be, but maybe have two functions
for acquiring the lock for read, one blocks if there is a writer
waiting, the other doesn't.

That way you can change the individual call sites separately.

The other place I can imagine a per-cpu rwlock being used
is to allow a driver to disable 'sleep' or software controlled
hardware removal while it performs a sequence of operations.

	David



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ