lockd: unregister notifier blocks if the service fails to come up completely
authorScott Mayhew <smayhew@redhat.com>
Thu, 30 Jun 2016 14:39:32 +0000 (10:39 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 30 Jun 2016 20:35:07 +0000 (16:35 -0400)
commitcb7d224f82e41d82518e7f9ea271d215d4d08e6e
tree6fe7e8fe627d4edb00a6587b96f20329f5b7df2c
parent4c2e07c6a29e0129e975727b9f57eede813eea85
lockd: unregister notifier blocks if the service fails to come up completely

If the lockd service fails to start up then we need to be sure that the
notifier blocks are not registered, otherwise a subsequent start of the
service could cause the same notifier to be registered twice, leading to
soft lockups.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 0751ddf77b6a "lockd: Register callbacks on the inetaddr_chain..."
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc.c