diff options
| author | Glauber Costa <[email protected]> | 2011-12-16 00:51:59 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2011-12-16 20:35:17 +0000 |
| commit | 36b77a52087a9fca4228c06e0730750f9b6468f0 (patch) | |
| tree | 90812a9ce9964e051f5fd286647509560b98ae00 /fs/proc/array.c | |
| parent | mlx4: Fix compile error when driver is comiled-in (diff) | |
| download | kernel-36b77a52087a9fca4228c06e0730750f9b6468f0.tar.gz kernel-36b77a52087a9fca4228c06e0730750f9b6468f0.zip | |
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 <[email protected]>
CC: Hiroyouki Kamezawa <[email protected]>
CC: David S. Miller <[email protected]>
CC: Eric Dumazet <[email protected]>
CC: Stephen Rothwell <[email protected]>
CC: Randy Dunlap <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
