Lines Matching defs: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
258 /* if cancel or unlock succeeded, lvb work is done */
314 struct dlm_unlock_lock unlock;
333 memset(&unlock, 0, sizeof(unlock));
334 unlock.node_idx = dlm->node_num;
335 unlock.flags = cpu_to_be32(flags);
336 unlock.cookie = lock->ml.cookie;
337 unlock.namelen = res->lockname.len;
338 memcpy(unlock.name, res->lockname.name, unlock.namelen);
341 vec[0].iov_base = &unlock;
363 * unlock, the recovery code completes the operation
393 struct dlm_unlock_lock *unlock = (struct dlm_unlock_lock *)msg->buf;
403 flags = be32_to_cpu(unlock->flags);
406 mlog(ML_ERROR, "bad args! GET_LVB specified on unlock!\n");
416 if (unlock->namelen > DLM_LOCKID_NAME_MAX) {
417 mlog(ML_ERROR, "Invalid name length in unlock handler!\n");
429 res = dlm_lookup_lockres(dlm, unlock->name, unlock->namelen);
464 if (iter->ml.cookie == unlock->cookie &&
465 iter->ml.node == unlock->node_idx) {
491 memcpy(&lksb->lvb[0], &unlock->lvb[0], DLM_LVB_LEN);
508 mlog(ML_ERROR, "failed to find lock to unlock! "
510 dlm_get_lock_cookie_node(be64_to_cpu(unlock->cookie)),
511 dlm_get_lock_cookie_seq(be64_to_cpu(unlock->cookie)));
565 /* unlock request */
571 /* unlock granted lock */
657 mlog(0, "retrying unlock due to pending recovery/"