1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-24 17:57:48 +03:00

Remove extra sync calls.

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.
This commit is contained in:
Zdenek Kabelac 2011-02-04 19:21:47 +00:00
parent fa6a525c2d
commit 09d288535b
2 changed files with 1 additions and 7 deletions

View File

@ -507,7 +507,6 @@ int do_lock_lv(unsigned char command, unsigned char lock_flags, char *resource)
switch (command & LCK_MASK) {
case LCK_LV_EXCLUSIVE:
status = do_activate_lv(resource, lock_flags, LCK_EXCL);
fs_unlock();
break;
case LCK_LV_SUSPEND:
@ -517,17 +516,14 @@ int do_lock_lv(unsigned char command, unsigned char lock_flags, char *resource)
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:

View File

@ -38,9 +38,7 @@ static int _no_lock_resource(struct cmd_context *cmd, const char *resource,
{
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: