Searched refs:dlm_lock (Results 1 - 29 of 29) sorted by relevance

/linux-4.4.14/fs/ocfs2/dlm/
H A Ddlmconvert.h30 struct dlm_lock *lock, int flags, int type);
33 struct dlm_lock *lock, int flags, int type);
H A Ddlmlock.c62 struct dlm_lock *lock, int flags);
63 static void dlm_init_lock(struct dlm_lock *newlock, int type,
66 static void dlm_lock_detach_lockres(struct dlm_lock *lock);
71 sizeof(struct dlm_lock), dlm_init_lock_cache()
92 struct dlm_lock *lock) dlm_can_grant_new_lock()
94 struct dlm_lock *tmplock; dlm_can_grant_new_lock()
121 struct dlm_lock *lock, int flags) dlmlock_master()
200 struct dlm_lock *lock) dlm_revert_pending_lock()
217 struct dlm_lock *lock, int flags) dlmlock_remote()
303 struct dlm_lock *lock, int flags) dlm_send_remote_lock_request()
342 void dlm_lock_get(struct dlm_lock *lock) dlm_lock_get()
347 void dlm_lock_put(struct dlm_lock *lock) dlm_lock_put()
354 struct dlm_lock *lock; dlm_lock_release()
356 lock = container_of(kref, struct dlm_lock, lock_refs); dlm_lock_release()
374 void dlm_lock_attach_lockres(struct dlm_lock *lock, dlm_lock_attach_lockres()
382 static void dlm_lock_detach_lockres(struct dlm_lock *lock) dlm_lock_detach_lockres()
394 static void dlm_init_lock(struct dlm_lock *newlock, int type, dlm_init_lock()
423 struct dlm_lock * dlm_new_lock(int type, u8 node, u64 cookie, dlm_new_lock()
426 struct dlm_lock *lock; dlm_new_lock()
464 struct dlm_lock *newlock = NULL; dlm_create_lock_handler()
565 struct dlm_lock *lock = NULL; dlmlock()
603 /* if converting, must pass in a valid dlm_lock */ dlmlock()
H A Ddlmast.c52 struct dlm_lock *lock);
53 static int dlm_should_cancel_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock);
64 static int dlm_should_cancel_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock) dlm_should_cancel_bast()
91 void __dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock) __dlm_queue_ast()
146 void dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock) dlm_queue_ast()
157 void __dlm_queue_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock) __dlm_queue_bast()
183 void dlm_queue_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock) dlm_queue_bast()
194 struct dlm_lock *lock) dlm_update_lvb()
224 struct dlm_lock *lock) dlm_do_local_ast()
244 struct dlm_lock *lock) dlm_do_remote_ast()
268 struct dlm_lock *lock, int blocked_type) dlm_do_local_bast()
292 struct dlm_lock *lock = NULL; dlm_proxy_ast_handler()
451 struct dlm_lock *lock, int msg_type, dlm_send_proxy_ast_msg()
H A Ddlmcommon.h354 struct dlm_lock struct
548 * at most one dlm_lock on a lockres for each node in the cluster,
828 struct dlm_lock * dlm_new_lock(int type, u8 node, u64 cookie,
830 void dlm_lock_get(struct dlm_lock *lock);
831 void dlm_lock_put(struct dlm_lock *lock);
833 void dlm_lock_attach_lockres(struct dlm_lock *lock,
844 struct dlm_lock *lock);
846 struct dlm_lock *lock);
851 struct dlm_lock *lock);
853 struct dlm_lock *lock);
917 void dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock);
918 void dlm_queue_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock);
919 void __dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock);
920 void __dlm_queue_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock);
923 struct dlm_lock *lock);
926 struct dlm_lock *lock);
929 struct dlm_lock *lock,
933 struct dlm_lock *lock,
938 struct dlm_lock *lock, dlm_send_proxy_bast()
947 struct dlm_lock *lock, dlm_send_proxy_ast()
1045 int dlm_lock_basts_flushed(struct dlm_ctxt *dlm, struct dlm_lock *lock);
1082 struct dlm_lock *lock) dlm_lock_on_list()
1084 struct dlm_lock *tmplock; dlm_lock_on_list()
H A Ddlmconvert.c60 struct dlm_lock *lock, int flags,
65 struct dlm_lock *lock, int flags, int type);
78 struct dlm_lock *lock, int flags, int type) dlmconvert_master()
121 struct dlm_lock *lock, int flags, __dlmconvert_master()
126 struct dlm_lock *tmplock=NULL; __dlmconvert_master()
245 struct dlm_lock *lock) dlm_revert_pending_convert()
262 struct dlm_lock *lock, int flags, int type) dlmconvert_remote()
366 struct dlm_lock *lock, int flags, int type) dlm_send_remote_convert_request()
446 struct dlm_lock *lock = NULL; dlm_convert_lock_handler()
447 struct dlm_lock *tmp_lock; dlm_convert_lock_handler()
H A Ddlmunlock.c60 struct dlm_lock *lock,
65 struct dlm_lock *lock,
71 struct dlm_lock *lock,
100 struct dlm_lock *lock, dlmunlock_common()
268 struct dlm_lock *lock) dlm_commit_pending_unlock()
276 struct dlm_lock *lock) dlm_commit_pending_cancel()
285 struct dlm_lock *lock, dlmunlock_master()
295 struct dlm_lock *lock, dlmunlock_remote()
311 struct dlm_lock *lock, dlm_send_remote_unlock_request()
397 struct dlm_lock *lock = NULL; dlm_unlock_lock_handler()
530 struct dlm_lock *lock, dlm_get_cancel_actions()
562 struct dlm_lock *lock, dlm_get_unlock_actions()
592 struct dlm_lock *lock = NULL; dlmunlock()
H A Ddlmapi.h30 struct dlm_lock;
114 struct dlm_lock *lockid;
205 void dlm_print_one_lock(struct dlm_lock *lockid);
H A Ddlmthread.c301 struct dlm_lock *lock, *target; dlm_shuffle_lists()
322 target = list_entry(res->converting.next, struct dlm_lock, list); dlm_shuffle_lists()
393 target = list_entry(res->blocked.next, struct dlm_lock, list); dlm_shuffle_lists()
530 struct dlm_lock *lock; dlm_flush_asts()
537 struct dlm_lock, ast_list); dlm_flush_asts()
581 struct dlm_lock, bast_list); dlm_flush_asts()
H A Ddlmrecovery.c1056 struct dlm_lock *lock; dlm_move_reco_locks_to_list()
1190 static void dlm_prepare_lvb_for_migration(struct dlm_lock *lock, dlm_prepare_lvb_for_migration()
1226 static int dlm_add_lock_to_array(struct dlm_lock *lock, dlm_add_lock_to_array()
1253 struct dlm_lock dummy; dlm_add_dummy_lock()
1286 struct dlm_lock *lock; dlm_send_one_lockres()
1785 struct dlm_lock *newlock = NULL; dlm_process_recovery_data()
1789 struct dlm_lock *lock; dlm_process_recovery_data()
1830 struct dlm_lock, list); list_for_each()
2044 struct dlm_lock *lock, *next; dlm_move_lockres_to_recovery_list()
2186 static inline int dlm_lvb_needs_invalidation(struct dlm_lock *lock, int local) dlm_lvb_needs_invalidation()
2201 struct dlm_lock *lock; dlm_revalidate_lvb()
2243 struct dlm_lock *lock, *next; dlm_free_dead_locks()
2319 struct dlm_lock *lock; dlm_do_local_recovery_cleanup()
H A Ddlmdebug.c74 static void __dlm_print_lock(struct dlm_lock *lock) __dlm_print_lock()
99 struct dlm_lock *lock; __dlm_print_one_lock_resource()
133 void dlm_print_one_lock(struct dlm_lock *lockid) dlm_print_one_lock()
499 static int dump_lock(struct dlm_lock *lock, int list_type, char *buf, int len) dump_lock()
525 struct dlm_lock *lock; dump_lockres()
H A Ddlmmaster.c2425 struct dlm_lock *lock; dlm_is_lockres_migrateable()
2727 int dlm_lock_basts_flushed(struct dlm_ctxt *dlm, struct dlm_lock *lock) dlm_lock_basts_flushed()
2857 * original master calls this to free all of the dlm_lock
2864 struct dlm_lock *lock, *next; dlm_remove_nonlocal_locks()
2918 struct dlm_lock *lock; dlm_pick_migration_target()
H A Ddlmdomain.c116 * dlm_lock->spinlock
/linux-4.4.14/fs/dlm/
H A Dmain.c95 EXPORT_SYMBOL_GPL(dlm_lock); variable
H A Ddlm_internal.h163 * lkb_exflags: a copy of the most recent flags arg provided to dlm_lock or
176 * the caller's lksb.sb_flags prior to the dlm_lock/dlm_unlock completion
H A Dlock.c15 dlm_lock()
36 dlm_lock = request_lock
37 dlm_lock+CONVERT = convert_lock
3406 * Two stage 1 varieties: dlm_lock() and dlm_unlock()
3409 int dlm_lock(dlm_lockspace_t *lockspace, dlm_lock() function
/linux-4.4.14/include/linux/
H A Ddlm.h99 * dlm_lock
122 * If the call to dlm_lock returns an error then the operation has failed and
123 * the AST routine will not be called. If dlm_lock returns 0 it is still
128 * they will overwrite those values that were passed to a previous dlm_lock
135 int dlm_lock(dlm_lockspace_t *lockspace,
/linux-4.4.14/include/uapi/linux/
H A Ddlmconstants.h39 * Flags to dlm_lock
45 * either return -EAGAIN from the dlm_lock call or will return 0 from
46 * dlm_lock and -EAGAIN in the lock status block when the AST is executed.
H A Ddlm.h37 * It is available when dlm_lock returns.
/linux-4.4.14/fs/ocfs2/dlmfs/
H A Duserdlm.h39 * dlm_lock */
H A Duserdlm.c457 /* is someone sitting in dlm_lock? If so, wait on user_dlm_cluster_lock()
487 /* call dlm_lock to upgrade lock now */ user_dlm_cluster_lock()
/linux-4.4.14/fs/ocfs2/
H A Dstackglue.h164 * Call the underlying dlm lock function. The ->dlm_lock()
173 int (*dlm_lock)(struct ocfs2_cluster_connection *conn, member in struct:ocfs2_stack_operations
H A Docfs2.h124 * dlm_lock */
140 call to dlm_lock. Only
H A Dstack_o2cb.c421 .dlm_lock = o2cb_dlm_lock,
H A Dstack_user.c702 ret = dlm_lock(conn->cc_lockspace, mode, &lksb->lksb_fsdlm, user_dlm_lock()
859 error = dlm_lock(conn->cc_lockspace, mode, lksb, flags, sync_lock()
1087 .dlm_lock = user_dlm_lock,
H A Ddlmglue.c1112 * know that dlm_lock() has been called :-) ocfs2_locking_ast()
1424 /* is someone sitting in dlm_lock? If so, wait on __ocfs2_cluster_lock()
1490 /* call dlm_lock to upgrade lock now */ __ocfs2_cluster_lock()
3421 * OCFS2_LOCK_BUSY, but has *NOT* yet called dlm_lock(). ocfs2_unblock_lock()
3424 * calls dlm_lock(), our cancel will do nothing. We will ocfs2_unblock_lock()
3427 * into dlm_lock() and wait...forever. ocfs2_unblock_lock()
3434 * thread has called dlm_lock() and cleared PENDING will ocfs2_unblock_lock()
3437 * All callers of dlm_lock() must set OCFS2_DLM_PENDING ocfs2_unblock_lock()
3439 * clear OCFS2_DLM_PENDING after dlm_lock() returns. ocfs2_unblock_lock()
H A Dstackglue.c252 return active_stack->sp_ops->dlm_lock(conn, mode, lksb, flags, ocfs2_dlm_lock()
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
H A Dosc_lock.c144 * Breaks a link between osc_lock and dlm_lock.
288 static struct osc_lock *osc_ast_data_get(struct ldlm_lock *dlm_lock) osc_ast_data_get() argument
292 lock_res_and_lock(dlm_lock); osc_ast_data_get()
294 olck = dlm_lock->l_ast_data; osc_ast_data_get()
314 unlock_res_and_lock(dlm_lock); osc_ast_data_get()
/linux-4.4.14/drivers/md/
H A Dmd-cluster.c27 uint32_t flags; /* flags to pass to dlm_lock() */
104 ret = dlm_lock(res->ls, mode, &res->lksb, dlm_lock_sync()
/linux-4.4.14/fs/gfs2/
H A Dlock_dlm.c278 return dlm_lock(ls->ls_dlm, req, &gl->gl_lksb, lkf, strname, gdlm_lock()
530 error = dlm_lock(ls->ls_dlm, mode, lksb, flags, sync_lock()

Completed in 730 milliseconds