]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7cb0de58d0f27e94fe4799e1853b51d6509dd23f
tree6fe7e8fe627d4edb00a6587b96f20329f5b7df2c
parentdf5a8a9ace16d9351a8a97dd598e0b53b307b766
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: c21e7132a5cf "lockd: Register callbacks on the inetaddr_chain..."
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc.c