Home
last modified time | relevance | path

Searched refs:lockid (Results 1 – 8 of 8) sorted by relevance

/dragonfly/contrib/lvm2/dist/daemons/clvmd/
H A Dclvmd-gulm.c768 static int _unlock_resource(char *resource, int lockid) in _unlock_resource() argument
835 _unlock_resource(lock1, *lockid); in _sync_lock()
846 status = _unlock_resource(lock2, *lockid); in _sync_lock()
853 status = _unlock_resource(lock1, *lockid); in _sync_lock()
862 *lockid = mode; in _sync_lock()
876 assert(lockid == LCK_EXCL || in _sync_unlock()
877 lockid == LCK_READ || in _sync_unlock()
878 lockid == LCK_PREAD || in _sync_unlock()
879 lockid == LCK_WRITE); in _sync_unlock()
881 status = _unlock_resource(lock1, lockid); in _sync_unlock()
[all …]
H A Dclvmd-openais.c548 static int _unlock_resource(char *resource, int lockid) in _unlock_resource() argument
586 status = _lock_resource(lock1, SA_LCK_EX_LOCK_MODE, flags, lockid); in _sync_lock()
592 lockid); in _sync_lock()
595 _unlock_resource(lock1, *lockid); in _sync_lock()
603 status = _lock_resource(lock1, SA_LCK_PR_LOCK_MODE, flags, lockid); in _sync_lock()
606 _unlock_resource(lock2, *lockid); in _sync_lock()
613 _unlock_resource(lock1, *lockid); in _sync_lock()
622 *lockid = mode; in _sync_lock()
626 static int _sync_unlock(const char *resource, int lockid) in _sync_unlock() argument
635 _unlock_resource(lock1, lockid); in _sync_unlock()
[all …]
H A Dclvmd-cman.c418 static int _sync_lock(const char *resource, int mode, int flags, int *lockid) in _sync_lock() argument
423 if (!lockid) { in _sync_lock()
431 lwait.lksb.sb_lkid = *lockid; in _sync_lock()
451 *lockid = lwait.lksb.sb_lkid; in _sync_lock()
454 DEBUGLOG("sync_lock: returning lkid %x\n", *lockid); in _sync_lock()
461 static int _sync_unlock(const char *resource /* UNUSED */, int lockid) in _sync_unlock() argument
466 DEBUGLOG("sync_unlock: '%s' lkid:%x\n", resource, lockid); in _sync_unlock()
472 status = dlm_ls_unlock(lockspace, lockid, 0, &lwait.lksb, &lwait); in _sync_unlock()
H A Dclvmd-corosync.c465 static int _lock_resource(const char *resource, int mode, int flags, int *lockid) in _lock_resource() argument
473 lksb.sb_lkid = *lockid; in _lock_resource()
498 *lockid = lksb.sb_lkid; in _lock_resource()
504 static int _unlock_resource(const char *resource, int lockid) in _unlock_resource() argument
509 DEBUGLOG("unlock_resource: %s lockid: %x\n", resource, lockid); in _unlock_resource()
510 lksb.sb_lkid = lockid; in _unlock_resource()
513 lockid, in _unlock_resource()
H A Dclvmd-comms.h54 int flags, int *lockid);
55 int (*sync_unlock) (const char *resource, int lockid);
H A Dclvmd.h125 int sync_lock(const char *resource, int mode, int flags, int *lockid);
126 int sync_unlock(const char *resource, int lockid);
H A Dclvmd-command.c263 int lockid; in do_pre_command() local
269 status = sync_lock("CLVMD_TEST", LKM_EXMODE, 0, &lockid); in do_pre_command()
270 client->bits.localsock.private = (void *)(long)lockid; in do_pre_command()
H A Dclvmd.c2044 int sync_lock(const char *resource, int mode, int flags, int *lockid) in sync_lock() argument
2046 return clops->sync_lock(resource, mode, flags, lockid); in sync_lock()
2049 int sync_unlock(const char *resource, int lockid) in sync_unlock() argument
2051 return clops->sync_unlock(resource, lockid); in sync_unlock()