Lines Matching refs:dlm
43 static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm,
48 static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm,
61 enum dlm_status dlmconvert_master(struct dlm_ctxt *dlm, in dlmconvert_master() argument
74 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master()
85 dlm_queue_ast(dlm, lock); in dlmconvert_master()
87 dlm_lockres_release_ast(dlm, res); in dlmconvert_master()
90 dlm_kick_thread(dlm, res); in dlmconvert_master()
104 static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm, in __dlmconvert_master() argument
194 if (lock->ml.node == dlm->node_num) in __dlmconvert_master()
251 enum dlm_status dlmconvert_remote(struct dlm_ctxt *dlm, in dlmconvert_remote() argument
318 status = dlm_send_remote_convert_request(dlm, res, lock, flags, type); in dlmconvert_remote()
333 dlm->name, res->lockname.len, res->lockname.name); in dlmconvert_remote()
355 static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm, in dlm_send_remote_convert_request() argument
369 convert.node_idx = dlm->node_num; in dlm_send_remote_convert_request()
386 tmpret = o2net_send_message_vec(DLM_CONVERT_LOCK_MSG, dlm->key, in dlm_send_remote_convert_request()
404 "node %u\n", tmpret, DLM_CONVERT_LOCK_MSG, dlm->key, in dlm_send_remote_convert_request()
410 dlm_wait_for_node_death(dlm, res->owner, in dlm_send_remote_convert_request()
434 struct dlm_ctxt *dlm = data; in dlm_convert_lock_handler() local
444 if (!dlm_grab(dlm)) { in dlm_convert_lock_handler()
449 mlog_bug_on_msg(!dlm_domain_fully_joined(dlm), in dlm_convert_lock_handler()
450 "Domain %s not fully joined!\n", dlm->name); in dlm_convert_lock_handler()
471 res = dlm_lookup_lockres(dlm, cnv->name, cnv->namelen); in dlm_convert_lock_handler()
522 status = __dlmconvert_master(dlm, res, lock, flags, in dlm_convert_lock_handler()
544 dlm_queue_ast(dlm, lock); in dlm_convert_lock_handler()
546 dlm_lockres_release_ast(dlm, res); in dlm_convert_lock_handler()
549 dlm_kick_thread(dlm, res); in dlm_convert_lock_handler()
554 dlm_put(dlm); in dlm_convert_lock_handler()