mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: global name doesn't apply to sanlock
When adopting locks, we shouldn't skip the special dlm global lockspace name when using sanlock.
This commit is contained in:
parent
568c7ed6f1
commit
8ecb5817c7
@ -5263,7 +5263,7 @@ static void adopt_locks(void)
|
||||
list_for_each_entry_safe(ls1, l1safe, &ls_found, list) {
|
||||
|
||||
/* The dlm global lockspace is special and doesn't match a VG. */
|
||||
if (!strcmp(ls1->name, gl_lsname_dlm)) {
|
||||
if ((ls1->lm_type == LD_LM_DLM) && !strcmp(ls1->name, gl_lsname_dlm)) {
|
||||
list_del(&ls1->list);
|
||||
free(ls1);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user