From: Glauber Costa Date: Fri, 16 Dec 2011 00:51:59 +0000 (+0000) Subject: net: fix sleeping while atomic problem in sock mem_cgroup. X-Git-Tag: v3.3-rc1~182^2~187 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36b77a52087a9fca4228c06e0730750f9b6468f0;p=pandora-kernel.git net: fix sleeping while atomic problem in sock mem_cgroup. 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, Convert proto_list_lock into a mutex, so we can sleep and do the necessary allocations. This lock is seldom taken, so there shouldn't be any performance penalties associated with that Signed-off-by: Glauber Costa CC: Hiroyouki Kamezawa CC: David S. Miller CC: Eric Dumazet CC: Stephen Rothwell CC: Randy Dunlap Signed-off-by: David S. Miller --- Reading git-diff-tree failed