Lines Matching refs:dlm
41 static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm,
46 static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm,
59 enum dlm_status dlmconvert_master(struct dlm_ctxt *dlm, in dlmconvert_master() argument
72 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master()
83 dlm_queue_ast(dlm, lock); in dlmconvert_master()
85 dlm_lockres_release_ast(dlm, res); in dlmconvert_master()
88 dlm_kick_thread(dlm, res); in dlmconvert_master()
102 static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm, in __dlmconvert_master() argument
192 if (lock->ml.node == dlm->node_num) in __dlmconvert_master()
249 enum dlm_status dlmconvert_remote(struct dlm_ctxt *dlm, in dlmconvert_remote() argument
316 status = dlm_send_remote_convert_request(dlm, res, lock, flags, type); in dlmconvert_remote()
331 dlm->name, res->lockname.len, res->lockname.name); in dlmconvert_remote()
353 static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm, in dlm_send_remote_convert_request() argument
367 convert.node_idx = dlm->node_num; in dlm_send_remote_convert_request()
384 tmpret = o2net_send_message_vec(DLM_CONVERT_LOCK_MSG, dlm->key, in dlm_send_remote_convert_request()
402 "node %u\n", tmpret, DLM_CONVERT_LOCK_MSG, dlm->key, in dlm_send_remote_convert_request()
408 dlm_wait_for_node_death(dlm, res->owner, in dlm_send_remote_convert_request()
432 struct dlm_ctxt *dlm = data; in dlm_convert_lock_handler() local
442 if (!dlm_grab(dlm)) { in dlm_convert_lock_handler()
447 mlog_bug_on_msg(!dlm_domain_fully_joined(dlm), in dlm_convert_lock_handler()
448 "Domain %s not fully joined!\n", dlm->name); in dlm_convert_lock_handler()
469 res = dlm_lookup_lockres(dlm, cnv->name, cnv->namelen); in dlm_convert_lock_handler()
520 status = __dlmconvert_master(dlm, res, lock, flags, in dlm_convert_lock_handler()
542 dlm_queue_ast(dlm, lock); in dlm_convert_lock_handler()
544 dlm_lockres_release_ast(dlm, res); in dlm_convert_lock_handler()
547 dlm_kick_thread(dlm, res); in dlm_convert_lock_handler()
552 dlm_put(dlm); in dlm_convert_lock_handler()