]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: fix shutdown cleanup
authorDavid Teigland <teigland@redhat.com>
Thu, 13 Nov 2008 19:22:34 +0000 (13:22 -0600)
committerDavid Teigland <teigland@redhat.com>
Thu, 13 Nov 2008 19:22:34 +0000 (13:22 -0600)
commitd9648aa980795dbf3c9f023f3d93104cdefd7853
tree64bcfe585256f96f468e29af9961ddf4c2dcc71d
parentc2a0a5d21e17f26a5c1bf5d38ef25566cc3de34d
dlm: fix shutdown cleanup

Fixes a regression from commit 9dbd7ec73c91ad60ad041a1a5d1369bce5285006,
"dlm: allow multiple lockspace creates".

An extraneous 'else' slipped into a code fragment being moved from
release_lockspace() to dlm_release_lockspace().  The result of the
unwanted 'else' is that dlm threads and structures are not stopped
and cleaned up when the final dlm lockspace is removed.  Trying to
create a new lockspace again afterward will fail with
"kmem_cache_create: duplicate cache dlm_conn" because the cache
was not previously destroyed.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lockspace.c