Lines Matching refs:status
90 enum dlm_status status; in dlmunlock_common() local
130 status = DLM_RECOVERING; in dlmunlock_common()
135 status = DLM_MIGRATING; in dlmunlock_common()
142 status = dlm_get_cancel_actions(dlm, res, lock, lksb, &actions); in dlmunlock_common()
144 status = dlm_get_unlock_actions(dlm, res, lock, lksb, &actions); in dlmunlock_common()
146 if (status != DLM_NORMAL && (status != DLM_CANCELGRANT || !master_node)) in dlmunlock_common()
168 status = dlm_send_remote_unlock_request(dlm, res, lock, lksb, in dlmunlock_common()
174 if (status == DLM_CANCELGRANT) { in dlmunlock_common()
178 } else if (status == DLM_RECOVERING || in dlmunlock_common()
179 status == DLM_MIGRATING || in dlmunlock_common()
180 status == DLM_FORWARD || in dlmunlock_common()
181 status == DLM_NOLOCKMGR in dlmunlock_common()
189 status==DLM_RECOVERING?"recovering": in dlmunlock_common()
190 (status==DLM_MIGRATING?"migrating": in dlmunlock_common()
191 (status == DLM_FORWARD ? "forward" : in dlmunlock_common()
261 if (status == DLM_NORMAL) in dlmunlock_common()
264 return status; in dlmunlock_common()
319 int status = 0; in dlm_send_remote_unlock_request() local
353 vec, veclen, owner, &status); in dlm_send_remote_unlock_request()
356 if (status == DLM_FORWARD) in dlm_send_remote_unlock_request()
358 ret = status; in dlm_send_remote_unlock_request()
398 enum dlm_status status = DLM_NORMAL; in dlm_unlock_lock_handler() local
437 status = DLM_FORWARD; in dlm_unlock_lock_handler()
447 status = DLM_RECOVERING; in dlm_unlock_lock_handler()
454 status = DLM_MIGRATING; in dlm_unlock_lock_handler()
461 status = DLM_FORWARD; in dlm_unlock_lock_handler()
481 status = DLM_IVLOCKID; in dlm_unlock_lock_handler()
499 status = dlmunlock_master(dlm, res, lock, lksb, flags, &ignore); in dlm_unlock_lock_handler()
500 if (status == DLM_FORWARD) in dlm_unlock_lock_handler()
524 return status; in dlm_unlock_lock_handler()
534 enum dlm_status status; in dlm_get_cancel_actions() local
538 status = DLM_NORMAL; in dlm_get_cancel_actions()
543 status = DLM_NORMAL; in dlm_get_cancel_actions()
550 status = DLM_CANCELGRANT; in dlm_get_cancel_actions()
554 status = DLM_IVLOCKID; in dlm_get_cancel_actions()
557 return status; in dlm_get_cancel_actions()
566 enum dlm_status status; in dlm_get_unlock_actions() local
570 status = DLM_DENIED; in dlm_get_unlock_actions()
571 dlm_error(status); in dlm_get_unlock_actions()
575 status = DLM_NORMAL; in dlm_get_unlock_actions()
580 return status; in dlm_get_unlock_actions()
590 enum dlm_status status; in dlmunlock() local
634 status = dlmunlock_master(dlm, res, lock, lksb, flags, in dlmunlock()
637 "call_ast is %d\n", status, call_ast); in dlmunlock()
639 status = dlmunlock_remote(dlm, res, lock, lksb, flags, in dlmunlock()
642 "call_ast is %d\n", status, call_ast); in dlmunlock()
645 if (status == DLM_RECOVERING || in dlmunlock()
646 status == DLM_MIGRATING || in dlmunlock()
647 status == DLM_FORWARD || in dlmunlock()
648 status == DLM_NOLOCKMGR) { in dlmunlock()
666 mlog(0, "calling unlockast(%p, %d)\n", data, status); in dlmunlock()
678 (*unlockast)(data, status); in dlmunlock()
681 if (status == DLM_CANCELGRANT) in dlmunlock()
682 status = DLM_NORMAL; in dlmunlock()
684 if (status == DLM_NORMAL) { in dlmunlock()
688 dlm_error(status); in dlmunlock()
694 mlog(0, "returning status=%d!\n", status); in dlmunlock()
695 return status; in dlmunlock()