]> sourceware.org Git - lvm2.git/commit
In some versions (RHEL6) dlm_create_lockspace() always
authorMilan Broz <mbroz@redhat.com>
Wed, 19 Jan 2011 23:09:31 +0000 (23:09 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 19 Jan 2011 23:09:31 +0000 (23:09 +0000)
commit679830cf580b77305bf1c34f84d6e40d0453bdd1
treefba7db48fd0306b9f4d8109ebeb9b03cc127619a
parentdbc8e5098c518645ddae991e17ded204b5ecc7e4
In some versions (RHEL6) dlm_create_lockspace() always
return lockspace reference (even if lockspace already exists)
and thus increases DLM lockspace count. It means that after
clvmd restart the lockspace is still in use.

(The only way to clean environment to enable clean cluster
shutdown is call "dlm_tool leave clvmd" several times.)

Because only one clvmd can run in time, we can use simpler logic,
try to open lockspace with dlm_open_lockspace() and only if it fails
try to create new one. This way the lockspace reference doesn not
increase.

Very easily reproducible with  "clvmd -S" command.

Patch also fixes return code when clvmd_restart fails and fixes
double free if debug option was specified during restart.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=612862
WHATS_NEW
daemons/clvmd/clvmd-cman.c
daemons/clvmd/clvmd-command.c
daemons/clvmd/clvmd-corosync.c
This page took 0.034427 seconds and 5 git commands to generate.