]> git.karo-electronics.de Git - linux-beck.git/commit
staging/lustre/ldlm: In ldlm_pools_fini make sure there was init first.
authorOleg Drokin <green@linuxhacker.ru>
Mon, 6 Jul 2015 16:48:41 +0000 (12:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jul 2015 02:47:19 +0000 (19:47 -0700)
commitfaa7a4e3e03889267f66a98d85434b4ff7dd0087
tree5364a12c5a8371cab5b6247103a6d7a180dfca54
parent6a491f2b80f2806221ba3a5a3e26fbe945f82d83
staging/lustre/ldlm: In ldlm_pools_fini make sure there was init first.

It turns out if you call ldlm_pools_fini without completing the
ldlm_pools_init, then attempt to unregister not yet registered
shrinkers makes the kernel very unhappy.
So make sure we have them registered first.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c