• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ocfs2/dlm/

Lines Matching refs:dlm

59 static enum dlm_status dlm_send_remote_lock_request(struct dlm_ctxt *dlm,
104 static enum dlm_status dlmlock_master(struct dlm_ctxt *dlm,
118 lock->ml.node != dlm->node_num) {
146 "node %u for reco lock\n", dlm->name,
157 "node %u for reco lock\n", dlm->name,
168 if (lock->ml.node == dlm->node_num)
169 dlm_lockres_drop_inflight_ref(dlm, res);
176 dlm_queue_ast(dlm, lock);
178 dlm_lockres_release_ast(dlm, res);
180 dlm_lockres_calc_usage(dlm, res);
182 dlm_kick_thread(dlm, res);
203 static enum dlm_status dlmlock_remote(struct dlm_ctxt *dlm,
228 status = dlm_send_remote_lock_request(dlm, res, lock, flags);
242 dlm->name, res->owner);
263 dlm->name, dlm->node_num, res->owner);
269 dlm_lockres_calc_usage(dlm, res);
283 static enum dlm_status dlm_send_remote_lock_request(struct dlm_ctxt *dlm,
294 create.node_idx = dlm->node_num;
301 tmpret = o2net_send_message(DLM_CREATE_LOCK_MSG, dlm->key, &create,
309 "up currently.\n", dlm->name, create.namelen,
447 struct dlm_ctxt *dlm = data;
456 BUG_ON(!dlm);
460 if (!dlm_grab(dlm))
466 if (!dlm_domain_fully_joined(dlm)) {
469 dlm->name, create->node_idx, namelen, name);
497 res = dlm_lookup_lockres(dlm, name, namelen);
514 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags));
523 dlm_put(dlm);
546 enum dlm_status dlmlock(struct dlm_ctxt *dlm, int mode,
618 dlm_wait_for_recovery(dlm);
620 if (res->owner == dlm->node_num)
621 status = dlmconvert_master(dlm, res, lock, flags, mode);
623 status = dlmconvert_remote(dlm, res, lock, flags, mode);
651 dlm_get_next_cookie(dlm->node_num, &tmpcookie);
652 lock = dlm_new_lock(mode, dlm->node_num, tmpcookie, lksb);
659 dlm_wait_for_recovery(dlm);
662 res = dlm_get_lock_resource(dlm, name, namelen, flags);
691 if (res->owner == dlm->node_num)
692 status = dlmlock_master(dlm, res, lock, flags);
694 status = dlmlock_remote(dlm, res, lock, flags);
708 "was %u\n", dlm->name,
713 dlm_wait_for_node_death(dlm, res->owner,
716 dlm_wait_for_recovery(dlm);