IPVS: fix netns if reading ip_vs_* procfs entries
authorHans Schillstrom <hans.schillstrom@ericsson.com>
Sun, 15 May 2011 15:20:29 +0000 (17:20 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 15 May 2011 15:27:18 +0000 (17:27 +0200)
commit0f08190fe8af3cdb6ba19690eb0fa253ecef4bde
treee3dceb808591fd9cf49ddeccfedac771569c323a
parentd8083deb4f1aa0977980dfb834fcc336ef38318f
IPVS: fix netns if reading ip_vs_* procfs entries

Without this patch every access to ip_vs in procfs will increase
the netns count i.e. an unbalanced get_net()/put_net().
(ipvsadm commands also use procfs.)
The result is you can't exit a netns if reading ip_vs_* procfs entries.

Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_app.c
net/netfilter/ipvs/ip_vs_conn.c
net/netfilter/ipvs/ip_vs_ctl.c