]> git.baikalelectronics.ru Git - kernel.git/commit
Lockd: pass network namespace to creation and destruction routines
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Thu, 29 Mar 2012 14:54:33 +0000 (18:54 +0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 11 Apr 2012 21:55:06 +0000 (17:55 -0400)
commiteb6e5424cbea5d08b06069f3489e08d7e5fd56a3
tree688a94f2c86e0d7c637609239925f94f8ee08626
parent5fa7f2b86e8743bd0abe7faee861b2341788f6fa
Lockd: pass network namespace to creation and destruction routines

v2: dereference of most probably already released nlm_host removed in
nlmclnt_done() and reclaimer().

These routines are called from locks reclaimer() kernel thread. This thread
works in "init_net" network context and currently relays on persence on lockd
thread and it's per-net resources. Thus lockd_up() and lockd_down() can't relay
on current network context. So let's pass corrent one into them.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/clntlock.c
fs/lockd/svc.c
fs/nfsd/nfssvc.c
include/linux/lockd/bind.h