Lines Matching full:unlock
67 * So to unlock a converting lock, you must first cancel the
68 * convert (passing LKM_CANCEL in flags), then call the unlock
181 /* must clear the actions because this unlock in dlmunlock_common()
236 /* Unlock request will directly succeed after owner dies, in dlmunlock_common()
258 /* if cancel or unlock succeeded, lvb work is done */ in dlmunlock_common()
314 struct dlm_unlock_lock unlock; in dlm_send_remote_unlock_request() local
333 memset(&unlock, 0, sizeof(unlock)); in dlm_send_remote_unlock_request()
334 unlock.node_idx = dlm->node_num; in dlm_send_remote_unlock_request()
335 unlock.flags = cpu_to_be32(flags); in dlm_send_remote_unlock_request()
336 unlock.cookie = lock->ml.cookie; in dlm_send_remote_unlock_request()
337 unlock.namelen = res->lockname.len; in dlm_send_remote_unlock_request()
338 memcpy(unlock.name, res->lockname.name, unlock.namelen); in dlm_send_remote_unlock_request()
341 vec[0].iov_base = &unlock; in dlm_send_remote_unlock_request()
363 * unlock, the recovery code completes the operation in dlm_send_remote_unlock_request()
393 struct dlm_unlock_lock *unlock = (struct dlm_unlock_lock *)msg->buf; in dlm_unlock_lock_handler() local
403 flags = be32_to_cpu(unlock->flags); in dlm_unlock_lock_handler()
406 mlog(ML_ERROR, "bad args! GET_LVB specified on unlock!\n"); in dlm_unlock_lock_handler()
416 if (unlock->namelen > DLM_LOCKID_NAME_MAX) { in dlm_unlock_lock_handler()
417 mlog(ML_ERROR, "Invalid name length in unlock handler!\n"); in dlm_unlock_lock_handler()
429 res = dlm_lookup_lockres(dlm, unlock->name, unlock->namelen); in dlm_unlock_lock_handler()
464 if (iter->ml.cookie == unlock->cookie && in dlm_unlock_lock_handler()
465 iter->ml.node == unlock->node_idx) { in dlm_unlock_lock_handler()
491 memcpy(&lksb->lvb[0], &unlock->lvb[0], DLM_LVB_LEN); in dlm_unlock_lock_handler()
508 mlog(ML_ERROR, "failed to find lock to unlock! " in dlm_unlock_lock_handler()
510 dlm_get_lock_cookie_node(be64_to_cpu(unlock->cookie)), in dlm_unlock_lock_handler()
511 dlm_get_lock_cookie_seq(be64_to_cpu(unlock->cookie))); in dlm_unlock_lock_handler()
565 /* unlock request */ in dlm_get_unlock_actions()
571 /* unlock granted lock */ in dlm_get_unlock_actions()
657 mlog(0, "retrying unlock due to pending recovery/" in dlmunlock()