From: Eric W. Biederman Date: Sat, 27 Oct 2007 05:54:53 +0000 (-0700) Subject: [NET]: Marking struct pernet_operations __net_initdata was inappropriate X-Git-Tag: v2.6.24-rc2~129^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b008b0a8e96b726c603c5e1a5a7a509b5f61e35;p=pandora-kernel.git [NET]: Marking struct pernet_operations __net_initdata was inappropriate It is not safe to to place struct pernet_operations in a special section. We need struct pernet_operations to last until we call unregister_pernet_subsys. Which doesn't happen until module unload. So marking struct pernet_operations is a disaster for modules in two ways. - We discard it before we call the exit method it points to. - Because I keep struct pernet_operations on a linked list discarding it for compiled in code removes elements in the middle of a linked list and does horrible things for linked insert. So this looks safe assuming __exit_refok is not discarded for modules. Signed-off-by: Eric W. Biederman Signed-off-by: David S. Miller --- Reading git-diff-tree failed