Lines Matching full:unlock
69 * So to unlock a converting lock, you must first cancel the
70 * convert (passing LKM_CANCEL in flags), then call the unlock
183 /* must clear the actions because this unlock in dlmunlock_common()
238 /* Unlock request will directly succeed after owner dies, in dlmunlock_common()
260 /* if cancel or unlock succeeded, lvb work is done */ in dlmunlock_common()
316 struct dlm_unlock_lock unlock; in dlm_send_remote_unlock_request() local
335 memset(&unlock, 0, sizeof(unlock)); in dlm_send_remote_unlock_request()
336 unlock.node_idx = dlm->node_num; in dlm_send_remote_unlock_request()
337 unlock.flags = cpu_to_be32(flags); in dlm_send_remote_unlock_request()
338 unlock.cookie = lock->ml.cookie; in dlm_send_remote_unlock_request()
339 unlock.namelen = res->lockname.len; in dlm_send_remote_unlock_request()
340 memcpy(unlock.name, res->lockname.name, unlock.namelen); in dlm_send_remote_unlock_request()
343 vec[0].iov_base = &unlock; in dlm_send_remote_unlock_request()
365 * unlock, the recovery code completes the operation in dlm_send_remote_unlock_request()
395 struct dlm_unlock_lock *unlock = (struct dlm_unlock_lock *)msg->buf; in dlm_unlock_lock_handler() local
405 flags = be32_to_cpu(unlock->flags); in dlm_unlock_lock_handler()
408 mlog(ML_ERROR, "bad args! GET_LVB specified on unlock!\n"); in dlm_unlock_lock_handler()
418 if (unlock->namelen > DLM_LOCKID_NAME_MAX) { in dlm_unlock_lock_handler()
419 mlog(ML_ERROR, "Invalid name length in unlock handler!\n"); in dlm_unlock_lock_handler()
431 res = dlm_lookup_lockres(dlm, unlock->name, unlock->namelen); in dlm_unlock_lock_handler()
467 if (lock->ml.cookie == unlock->cookie && in dlm_unlock_lock_handler()
468 lock->ml.node == unlock->node_idx) { in dlm_unlock_lock_handler()
494 memcpy(&lksb->lvb[0], &unlock->lvb[0], DLM_LVB_LEN); in dlm_unlock_lock_handler()
511 mlog(ML_ERROR, "failed to find lock to unlock! " in dlm_unlock_lock_handler()
513 dlm_get_lock_cookie_node(be64_to_cpu(unlock->cookie)), in dlm_unlock_lock_handler()
514 dlm_get_lock_cookie_seq(be64_to_cpu(unlock->cookie))); in dlm_unlock_lock_handler()
568 /* unlock request */ in dlm_get_unlock_actions()
574 /* unlock granted lock */ in dlm_get_unlock_actions()
660 mlog(0, "retrying unlock due to pending recovery/" in dlmunlock()