Lines Matching full:unlock
84 * So to unlock a converting lock, you must first cancel the
85 * convert (passing LKM_CANCEL in flags), then call the unlock
198 /* must clear the actions because this unlock in dlmunlock_common()
253 /* Unlock request will directly succeed after owner dies, in dlmunlock_common()
275 /* if cancel or unlock succeeded, lvb work is done */ in dlmunlock_common()
331 struct dlm_unlock_lock unlock; in dlm_send_remote_unlock_request() local
350 memset(&unlock, 0, sizeof(unlock)); in dlm_send_remote_unlock_request()
351 unlock.node_idx = dlm->node_num; in dlm_send_remote_unlock_request()
352 unlock.flags = cpu_to_be32(flags); in dlm_send_remote_unlock_request()
353 unlock.cookie = lock->ml.cookie; in dlm_send_remote_unlock_request()
354 unlock.namelen = res->lockname.len; in dlm_send_remote_unlock_request()
355 memcpy(unlock.name, res->lockname.name, unlock.namelen); in dlm_send_remote_unlock_request()
358 vec[0].iov_base = &unlock; in dlm_send_remote_unlock_request()
380 * unlock, the recovery code completes the operation in dlm_send_remote_unlock_request()
410 struct dlm_unlock_lock *unlock = (struct dlm_unlock_lock *)msg->buf; in dlm_unlock_lock_handler() local
420 flags = be32_to_cpu(unlock->flags); in dlm_unlock_lock_handler()
423 mlog(ML_ERROR, "bad args! GET_LVB specified on unlock!\n"); in dlm_unlock_lock_handler()
433 if (unlock->namelen > DLM_LOCKID_NAME_MAX) { in dlm_unlock_lock_handler()
434 mlog(ML_ERROR, "Invalid name length in unlock handler!\n"); in dlm_unlock_lock_handler()
446 res = dlm_lookup_lockres(dlm, unlock->name, unlock->namelen); in dlm_unlock_lock_handler()
482 if (lock->ml.cookie == unlock->cookie && in dlm_unlock_lock_handler()
483 lock->ml.node == unlock->node_idx) { in dlm_unlock_lock_handler()
509 memcpy(&lksb->lvb[0], &unlock->lvb[0], DLM_LVB_LEN); in dlm_unlock_lock_handler()
526 mlog(ML_ERROR, "failed to find lock to unlock! " in dlm_unlock_lock_handler()
528 dlm_get_lock_cookie_node(be64_to_cpu(unlock->cookie)), in dlm_unlock_lock_handler()
529 dlm_get_lock_cookie_seq(be64_to_cpu(unlock->cookie))); in dlm_unlock_lock_handler()
583 /* unlock request */ in dlm_get_unlock_actions()
589 /* unlock granted lock */ in dlm_get_unlock_actions()
675 mlog(0, "retrying unlock due to pending recovery/" in dlmunlock()