Remove temporaly added fs_unlock() calls to fix clmvd usablity.
Now when the message passing is properly working - they are no longer needed.
Simplify no_locking check for VG unlock - as message is always send
for all targets - clustered & non-clustered.
switch (command & LCK_MASK) {
case LCK_LV_EXCLUSIVE:
status = do_activate_lv(resource, lock_flags, LCK_EXCL);
- fs_unlock();
break;
case LCK_LV_SUSPEND:
case LCK_UNLOCK:
case LCK_LV_RESUME: /* if active */
status = do_resume_lv(resource, lock_flags);
- fs_unlock();
break;
case LCK_LV_ACTIVATE:
status = do_activate_lv(resource, lock_flags, LCK_READ);
- fs_unlock();
break;
case LCK_LV_DEACTIVATE:
status = do_deactivate_lv(resource, lock_flags);
- fs_unlock();
break;
default:
{
switch (flags & LCK_SCOPE_MASK) {
case LCK_VG:
- if (!strcmp(resource, VG_SYNC_NAMES) ||
- (((flags & LCK_TYPE_MASK) == LCK_UNLOCK) &&
- is_real_vg(resource)))
+ if (!strcmp(resource, VG_SYNC_NAMES))
fs_unlock();
break;
case LCK_LV: