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.
64 printk(KERN_ERR "dlm: %s: " fmt "\n", (ls)->ls_name , ##args)
70 (ls)->ls_name, ##args); \
73 (ls)->ls_name , ##args); \
80 (ls)->ls_name , ##args); \
87 (ls)->ls_name , ##args); \
130 * Save and manage recovery state for a lockspace.
148 void (*bastfn) (void *astparam, int mode);
149 int mode; member
163 * (lkb_nodeid is non-zero and DLM_LKF_MSTCPY is not set)
165 * (lkb_nodeid is non-zero and DLM_LKF_MSTCPY is set)
170 * are sent as-is to the remote master when the lock is remote.
227 int8_t mode; /* rq mode of bast, gr mode of cast */ member
243 int8_t lkb_rqmode; /* requested lock mode */
244 int8_t lkb_grmode; /* granted lock mode */
245 int8_t lkb_highbast; /* highest mode bast sent for */
262 struct list_head lkb_cb_list; /* for ls_cb_delay or proc->asts */
274 void (*lkb_bastfn) (void *astparam, int mode);
282 * res_master_nodeid is "normal": 0 is unset/invalid, non-zero is the real
285 * res_nodeid is "odd": -1 is unset/invalid, zero means our_nodeid,
315 struct list_head res_root_list; /* used for recovery */
316 struct list_head res_recover_list; /* used for recovery */
354 __set_bit(flag, &r->res_flags); in rsb_set_flag()
359 __clear_bit(flag, &r->res_flags); in rsb_clear_flag()
364 return test_bit(flag, &r->res_flags); in rsb_flag()
422 int m_result; /* 0 or -EXXX */
448 int rc_result; /* multi-purpose */
558 struct list_head ls_nodes_gone; /* dead node list, recovery */
588 /* recovery related */
631 * LSFL_RECOVER_STOP - dlm_ls_stop() sets this to tell dlm recovery routines
632 * that they should abort what they're doing so new recovery can be started.
634 * LSFL_RECOVER_DOWN - dlm_ls_stop() sets this to tell dlm_recoverd that it
639 * LSFL_RECOVER_LOCK - dlm_recoverd holds the in_recovery rw_semaphore.
643 * LSFL_RECOVER_WORK - dlm_ls_start() sets this to tell dlm_recoverd that it
644 * should begin recovery of the lockspace.
646 * LSFL_RUNNING - set when normal locking activity is enabled.
648 * quit what they are doing so recovery can run. dlm_recoverd sets
649 * this after recovery is finished.
701 return !test_bit(LSFL_RUNNING, &ls->ls_flags); in dlm_locking_stopped()
706 return test_bit(LSFL_RECOVER_STOP, &ls->ls_flags); in dlm_recovery_stopped()
711 return test_bit(LSFL_NODIR, &ls->ls_flags); in dlm_no_directory()