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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Aug 2016 10:54:47 +0000 (12:54 +0200)
commitf54a878c9946fd22a9d7b0088f3f15b5eee1e8b7
treec61a57ea9a2dd0187e6b6c2f92a77ce9243cc40f
parent3e70b591806a05176ed475af16b5f29023b6bb47
lockd: unregister notifier blocks if the service fails to come up completely

commit cb7d224f82e41d82518e7f9ea271d215d4d08e6e upstream.

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>
Fixes: 0751ddf77b6a "lockd: Register callbacks on the inetaddr_chain..."
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/lockd/svc.c