Home
last modified time | relevance | path

Searched refs:lockres (Results 1 – 16 of 16) sorted by relevance

/linux-4.1.27/fs/ocfs2/dlmfs/
Duserdlm.c50 static inline int user_check_wait_flag(struct user_lock_res *lockres, in user_check_wait_flag() argument
55 spin_lock(&lockres->l_lock); in user_check_wait_flag()
56 ret = lockres->l_flags & flag; in user_check_wait_flag()
57 spin_unlock(&lockres->l_lock); in user_check_wait_flag()
62 static inline void user_wait_on_busy_lock(struct user_lock_res *lockres) in user_wait_on_busy_lock() argument
65 wait_event(lockres->l_event, in user_wait_on_busy_lock()
66 !user_check_wait_flag(lockres, USER_LOCK_BUSY)); in user_wait_on_busy_lock()
69 static inline void user_wait_on_blocked_lock(struct user_lock_res *lockres) in user_wait_on_blocked_lock() argument
72 wait_event(lockres->l_event, in user_wait_on_blocked_lock()
73 !user_check_wait_flag(lockres, USER_LOCK_BLOCKED)); in user_wait_on_blocked_lock()
[all …]
Duserdlm.h72 void user_dlm_lock_res_init(struct user_lock_res *lockres,
74 int user_dlm_destroy_lock(struct user_lock_res *lockres);
75 int user_dlm_cluster_lock(struct user_lock_res *lockres,
78 void user_dlm_cluster_unlock(struct user_lock_res *lockres,
/linux-4.1.27/fs/ocfs2/
Ddlmglue.c71 static struct ocfs2_super *ocfs2_get_dentry_osb(struct ocfs2_lock_res *lockres);
72 static struct ocfs2_super *ocfs2_get_inode_osb(struct ocfs2_lock_res *lockres);
73 static struct ocfs2_super *ocfs2_get_file_osb(struct ocfs2_lock_res *lockres);
74 static struct ocfs2_super *ocfs2_get_qinfo_osb(struct ocfs2_lock_res *lockres);
99 static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres,
101 static void ocfs2_set_meta_lvb(struct ocfs2_lock_res *lockres);
103 static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
106 static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
110 struct ocfs2_lock_res *lockres);
112 static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres);
[all …]
Dlocks.c43 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_do_flock() local
52 if (lockres->l_flags & OCFS2_LOCK_ATTACHED && in ocfs2_do_flock()
53 lockres->l_level > LKM_NLMODE) { in ocfs2_do_flock()
56 if (lockres->l_level == LKM_EXMODE) in ocfs2_do_flock()
Ddlmglue.h100 void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres,
103 void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres,
105 void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres,
161 struct ocfs2_lock_res *lockres);
163 struct ocfs2_lock_res *lockres);
/linux-4.1.27/fs/ocfs2/dlm/
Ddlmthread.c229 struct dlm_lock_resource *lockres; in dlm_run_purge_list() local
237 lockres = list_entry(dlm->purge_list.next, in dlm_run_purge_list()
240 spin_lock(&lockres->spinlock); in dlm_run_purge_list()
242 purge_jiffies = lockres->last_used + in dlm_run_purge_list()
252 spin_unlock(&lockres->spinlock); in dlm_run_purge_list()
260 unused = __dlm_lockres_unused(lockres); in dlm_run_purge_list()
262 (lockres->state & DLM_LOCK_RES_MIGRATING) || in dlm_run_purge_list()
263 (lockres->inflight_assert_workers != 0)) { in dlm_run_purge_list()
266 dlm->name, lockres->lockname.len, in dlm_run_purge_list()
267 lockres->lockname.name, in dlm_run_purge_list()
[all …]
Ddlmlock.c378 lock->lockres = res; in dlm_lock_attach_lockres()
386 res = lock->lockres; in dlm_lock_detach_lockres()
388 lock->lockres = NULL; in dlm_lock_detach_lockres()
611 res = lock->lockres; in dlmlock()
Ddlmast.c98 res = lock->lockres; in __dlm_queue_ast()
166 res = lock->lockres; in __dlm_queue_bast()
Ddlmcommon.h221 struct dlm_lock_resource *lockres; member
228 struct dlm_lock_resource *lockres; member
361 struct dlm_lock_resource *lockres; member
Ddlmunlock.c610 if (!lksb->lockid || !lksb->lockid->lockres) { in dlmunlock()
619 res = lock->lockres; in dlmunlock()
Ddlmrecovery.c1218 lock->lockres->lockname.len, lock->lockres->lockname.name, in dlm_prepare_lvb_for_migration()
1220 dlm_print_one_lock_resource(lock->lockres); in dlm_prepare_lvb_for_migration()
1500 item->u.ml.lockres = res; /* already have a ref */ in dlm_mig_lockres_handler()
1536 res = item->u.ml.lockres; in dlm_mig_lockres_worker()
Ddlmdebug.c135 dlm_print_one_lock_resource(lockid->lockres); in dlm_print_one_lock()
Ddlmmaster.c2098 item->u.am.lockres = res; /* already have a ref */ in dlm_dispatch_assert_master()
2128 res = item->u.am.lockres; in dlm_assert_master_worker()
/linux-4.1.27/drivers/md/
Dmd-cluster.c191 static void add_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres, in add_resync_info() argument
196 ri = (struct resync_info *)lockres->lksb.sb_lvbptr; in add_resync_info()
201 static struct suspend_info *read_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres) in read_resync_info() argument
207 dlm_lock_sync(lockres, DLM_LOCK_CR); in read_resync_info()
208 memcpy(&ri, lockres->lksb.sb_lvbptr, sizeof(struct resync_info)); in read_resync_info()
217 dlm_unlock_sync(lockres); in read_resync_info()
/linux-4.1.27/fs/lockd/
Dsvc4proc.c491 PROC(lock_res, lockres, norep, res, void, 1),
Dsvcproc.c535 PROC(lock_res, lockres, norep, res, void, 1),