Thread (6 messages) 6 messages, 2 authors, 2011-12-16

Re: [PATCH v2] net: fix sleeping while atomic problem in sock mem_cgroup.

From: Glauber Costa <hidden>
Date: 2011-12-16 09:54:08
Also in: lkml, netdev

On 12/16/2011 01:31 PM, Eric Dumazet wrote:
Le vendredi 16 décembre 2011 à 13:09 +0400, Glauber Costa a écrit :
quoted
Since we can't scan the proto_list to initialize sock cgroups, as it
holds a rwlock, and we also want to keep the code generic enough to
avoid calling the initialization functions of protocols directly,
I propose we keep the interested parties in a separate list. This list
is protected by a mutex so we can sleep and do the necessary allocations.

Also fixes a reference problem found by Randy Dunlap's randconfig.

Signed-off-by: Glauber Costa<redacted>
CC: Hiroyouki Kamezawa<redacted>
CC: David S. Miller<davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
CC: Eric Dumazet<redacted>
CC: Stephen Rothwell<redacted>
CC: Randy Dunlap<rdunlap-/UHa2rfvQTnk1uMJSBkQmQ@public.gmane.org>
---
Sorry to come late, but why dont we convert proto_list_lock to a mutex ?
I didn't suggest this, as I imagined there could be some performance 
implications to be drawn from it that may not be obvious to me.

But if it is okay with you net guys, it is certainly okay with me as well.
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help