Thread (26 messages) 26 messages, 5 authors, 2012-05-17

Re: [PATCH v5 2/2] decrement static keys on real destroy time

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2012-05-17 17:02:05
Also in: cgroups, netdev

On Thu, 17 May 2012 13:52:13 +0400 Glauber Costa [off-list ref] wrote:
Andrew is right. It seems we will need that mutex after all. Just this 
is not a race, and neither something that should belong in the 
static_branch interface.
Well, a mutex is one way.  Or you could do something like

	if (!test_and_set_bit(CGPROTO_ACTIVATED, &cg_proto->flags))
		static_key_slow_inc(&memcg_socket_limit_enabled);

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help