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.
63 printk(KERN_ERR "dlm: %s: " fmt "\n", (ls)->ls_name , ##args)
69 (ls)->ls_name, ##args); \
72 (ls)->ls_name , ##args); \
79 (ls)->ls_name , ##args); \
86 (ls)->ls_name , ##args); \
118 * Save and manage recovery state for a lockspace.
136 void (*bastfn) (void *astparam, int mode);
137 int mode; member
150 * (lkb_nodeid is non-zero and DLM_LKF_MSTCPY is not set)
152 * (lkb_nodeid is non-zero and DLM_LKF_MSTCPY is set)
157 * are sent as-is to the remote master when the lock is remote.
233 int8_t mode; /* rq mode of bast, gr mode of cast */ member
243 void (*bastfn)(void *astparam, int mode);
267 int8_t lkb_rqmode; /* requested lock mode */
268 int8_t lkb_grmode; /* granted lock mode */
269 int8_t lkb_highbast; /* highest mode bast sent for */
293 void (*lkb_bastfn) (void *astparam, int mode);
302 * res_master_nodeid is "normal": 0 is unset/invalid, non-zero is the real
305 * res_nodeid is "odd": -1 is unset/invalid, zero means our_nodeid,
333 struct list_head res_root_list; /* used for recovery */
334 struct list_head res_masters_list; /* used for recovery */
335 struct list_head res_recover_list; /* used for recovery */
376 __set_bit(flag, &r->res_flags); in rsb_set_flag()
381 __clear_bit(flag, &r->res_flags); in rsb_clear_flag()
386 return test_bit(flag, &r->res_flags); in rsb_flag()
454 __le32 m_result; /* 0 or -EXXX */
480 __le32 rc_result; /* multi-purpose */
579 and on a slow list for recovery/dump iteration */
596 struct list_head ls_nodes_gone; /* dead node list, recovery */
627 /* recovery related */
671 * LSFL_RECOVER_STOP - dlm_ls_stop() sets this to tell dlm recovery routines
672 * that they should abort what they're doing so new recovery can be started.
674 * LSFL_RECOVER_DOWN - dlm_ls_stop() sets this to tell dlm_recoverd that it
679 * LSFL_RECOVER_LOCK - dlm_recoverd holds the in_recovery rw_semaphore.
683 * LSFL_RECOVER_WORK - dlm_ls_start() sets this to tell dlm_recoverd that it
684 * should begin recovery of the lockspace.
686 * LSFL_RUNNING - set when normal locking activity is enabled.
688 * quit what they are doing so recovery can run. dlm_recoverd sets
689 * 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()