Lines Matching defs: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
260 /* if cancel or unlock succeeded, lvb work is done */
316 struct dlm_unlock_lock unlock;
335 memset(&unlock, 0, sizeof(unlock));
336 unlock.node_idx = dlm->node_num;
337 unlock.flags = cpu_to_be32(flags);
338 unlock.cookie = lock->ml.cookie;
339 unlock.namelen = res->lockname.len;
340 memcpy(unlock.name, res->lockname.name, unlock.namelen);
343 vec[0].iov_base = &unlock;
365 * unlock, the recovery code completes the operation
395 struct dlm_unlock_lock *unlock = (struct dlm_unlock_lock *)msg->buf;
405 flags = be32_to_cpu(unlock->flags);
408 mlog(ML_ERROR, "bad args! GET_LVB specified on unlock!\n");
418 if (unlock->namelen > DLM_LOCKID_NAME_MAX) {
419 mlog(ML_ERROR, "Invalid name length in unlock handler!\n");
431 res = dlm_lookup_lockres(dlm, unlock->name, unlock->namelen);
467 if (lock->ml.cookie == unlock->cookie &&
468 lock->ml.node == unlock->node_idx) {
494 memcpy(&lksb->lvb[0], &unlock->lvb[0], DLM_LVB_LEN);
511 mlog(ML_ERROR, "failed to find lock to unlock! "
513 dlm_get_lock_cookie_node(be64_to_cpu(unlock->cookie)),
514 dlm_get_lock_cookie_seq(be64_to_cpu(unlock->cookie)));
568 /* unlock request */
574 /* unlock granted lock */
660 mlog(0, "retrying unlock due to pending recovery/"