Lines Matching +full:mode +full:- +full:recovery

1 /* SPDX-License-Identifier: GPL-2.0-only */
5 ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
6 ** Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
61 printk(KERN_ERR "dlm: %s: " fmt "\n", (ls)->ls_name , ##args)
67 (ls)->ls_name, ##args); \
70 (ls)->ls_name , ##args); \
77 (ls)->ls_name , ##args); \
84 (ls)->ls_name , ##args); \
127 * Save and manage recovery state for a lockspace.
145 void (*bastfn) (void *astparam, int mode);
146 int mode; member
159 * (lkb_nodeid is non-zero and DLM_LKF_MSTCPY is not set)
161 * (lkb_nodeid is non-zero and DLM_LKF_MSTCPY is set)
166 * are sent as-is to the remote master when the lock is remote.
224 int8_t mode; /* rq mode of bast, gr mode of cast */ member
244 int8_t lkb_rqmode; /* requested lock mode */
245 int8_t lkb_grmode; /* granted lock mode */
246 int8_t lkb_highbast; /* highest mode bast sent for */
260 struct list_head lkb_cb_list; /* for ls_cb_delay or proc->asts */
273 void (*lkb_bastfn) (void *astparam, int mode);
281 * res_master_nodeid is "normal": 0 is unset/invalid, non-zero is the real
284 * res_nodeid is "odd": -1 is unset/invalid, zero means our_nodeid,
314 struct list_head res_root_list; /* used for recovery */
315 struct list_head res_recover_list; /* used for recovery */
353 __set_bit(flag, &r->res_flags); in rsb_set_flag()
358 __clear_bit(flag, &r->res_flags); in rsb_clear_flag()
363 return test_bit(flag, &r->res_flags); in rsb_flag()
431 __le32 m_result; /* 0 or -EXXX */
457 __le32 rc_result; /* multi-purpose */
581 struct list_head ls_nodes_gone; /* dead node list, recovery */
612 /* recovery related */
657 * LSFL_RECOVER_STOP - dlm_ls_stop() sets this to tell dlm recovery routines
658 * that they should abort what they're doing so new recovery can be started.
660 * LSFL_RECOVER_DOWN - dlm_ls_stop() sets this to tell dlm_recoverd that it
665 * LSFL_RECOVER_LOCK - dlm_recoverd holds the in_recovery rw_semaphore.
669 * LSFL_RECOVER_WORK - dlm_ls_start() sets this to tell dlm_recoverd that it
670 * should begin recovery of the lockspace.
672 * LSFL_RUNNING - set when normal locking activity is enabled.
674 * quit what they are doing so recovery can run. dlm_recoverd sets
675 * this after recovery is finished.
726 return !test_bit(LSFL_RUNNING, &ls->ls_flags); in dlm_locking_stopped()
731 return test_bit(LSFL_RECOVER_STOP, &ls->ls_flags); in dlm_recovery_stopped()
736 return test_bit(LSFL_NODIR, &ls->ls_flags); in dlm_no_directory()
754 return dlm_flags_val(&lkb->lkb_iflags, __DLM_IFL_MIN_BIT, in dlm_iflags_val()
760 return dlm_flags_val(&lkb->lkb_dflags, __DLM_DFL_MIN_BIT, in dlm_dflags_val()
780 return dlm_flags_val(&lkb->lkb_sbflags, __DLM_SBF_MIN_BIT, in dlm_sbflags_val()
799 dlm_set_flags_val(&lkb->lkb_dflags, val, __DLM_DFL_MIN_BIT, in dlm_set_dflags_val()
805 dlm_set_flags_val(&lkb->lkb_sbflags, val, __DLM_SBF_MIN_BIT, in dlm_set_sbflags_val()