Home
last modified time | relevance | path

Searched refs:ldlm_lock (Results 1 – 25 of 31) sorted by relevance

12

/drivers/staging/lustre/lustre/include/
Dlustre_dlm.h195 struct ldlm_lock;
270 typedef int (*ldlm_cancel_for_recovery)(struct ldlm_lock *lock);
289 int (*lvbo_size)(struct ldlm_lock *lock);
291 int (*lvbo_fill)(struct ldlm_lock *lock, void *buf, int buflen);
488 struct ldlm_lock;
491 typedef int (*ldlm_blocking_callback)(struct ldlm_lock *lock,
495 typedef int (*ldlm_completion_callback)(struct ldlm_lock *lock, __u64 flags,
498 typedef int (*ldlm_glimpse_callback)(struct ldlm_lock *lock, void *data);
502 struct ldlm_lock *gl_lock; /* lock to glimpse */
582 struct ldlm_lock { struct
[all …]
Dobd_class.h181 void __class_export_add_lock_ref(struct obd_export *, struct ldlm_lock *);
182 void __class_export_del_lock_ref(struct obd_export *, struct ldlm_lock *);
227 struct ldlm_lock *lock) in class_export_lock_get()
237 struct ldlm_lock *lock) in class_export_lock_put()
Dlustre_net.h507 struct ldlm_lock;
1235 int (*hpreq_lock_match)(struct ptlrpc_request *, struct ldlm_lock *);
/drivers/staging/lustre/lustre/ldlm/
Dldlm_internal.h131 void ldlm_grant_lock(struct ldlm_lock *lock, struct list_head *work_list);
132 int ldlm_fill_lvb(struct ldlm_lock *lock, struct req_capsule *pill,
134 struct ldlm_lock *
139 ldlm_error_t ldlm_lock_enqueue(struct ldlm_namespace *, struct ldlm_lock **,
141 void ldlm_lock_addref_internal(struct ldlm_lock *, __u32 mode);
142 void ldlm_lock_addref_internal_nolock(struct ldlm_lock *, __u32 mode);
143 void ldlm_lock_decref_internal(struct ldlm_lock *, __u32 mode);
144 void ldlm_lock_decref_internal_nolock(struct ldlm_lock *, __u32 mode);
147 int ldlm_lock_remove_from_lru(struct ldlm_lock *lock);
148 int ldlm_lock_remove_from_lru_nolock(struct ldlm_lock *lock);
[all …]
Dldlm_lock.c165 struct ldlm_lock *ldlm_lock_get(struct ldlm_lock *lock) in ldlm_lock_get()
177 void ldlm_lock_put(struct ldlm_lock *lock) in ldlm_lock_put()
214 int ldlm_lock_remove_from_lru_nolock(struct ldlm_lock *lock) in ldlm_lock_remove_from_lru_nolock()
233 int ldlm_lock_remove_from_lru(struct ldlm_lock *lock) in ldlm_lock_remove_from_lru()
247 static void ldlm_lock_add_to_lru_nolock(struct ldlm_lock *lock) in ldlm_lock_add_to_lru_nolock()
265 static void ldlm_lock_add_to_lru(struct ldlm_lock *lock) in ldlm_lock_add_to_lru()
278 static void ldlm_lock_touch_in_lru(struct ldlm_lock *lock) in ldlm_lock_touch_in_lru()
309 static int ldlm_lock_destroy_internal(struct ldlm_lock *lock) in ldlm_lock_destroy_internal()
356 static void ldlm_lock_destroy(struct ldlm_lock *lock) in ldlm_lock_destroy()
374 void ldlm_lock_destroy_nolock(struct ldlm_lock *lock) in ldlm_lock_destroy_nolock()
[all …]
Dldlm_flock.c78 ldlm_same_flock_owner(struct ldlm_lock *lock, struct ldlm_lock *new) in ldlm_same_flock_owner()
86 ldlm_flocks_overlap(struct ldlm_lock *lock, struct ldlm_lock *new) in ldlm_flocks_overlap()
95 ldlm_flock_destroy(struct ldlm_lock *lock, ldlm_mode_t mode, __u64 flags) in ldlm_flock_destroy()
135 static int ldlm_process_flock_lock(struct ldlm_lock *req, __u64 *flags, in ldlm_process_flock_lock()
143 struct ldlm_lock *lock = NULL; in ldlm_process_flock_lock()
144 struct ldlm_lock *new = req; in ldlm_process_flock_lock()
145 struct ldlm_lock *new2 = NULL; in ldlm_process_flock_lock()
170 lock = list_entry(tmp, struct ldlm_lock, in ldlm_process_flock_lock()
185 lock = list_entry(tmp, struct ldlm_lock, in ldlm_process_flock_lock()
247 lock = list_entry(ownlocks, struct ldlm_lock, l_res_link); in ldlm_process_flock_lock()
[all …]
Dldlm_extent.c66 __u64 ldlm_extent_shift_kms(struct ldlm_lock *lock, __u64 old_kms) in ldlm_extent_shift_kms()
70 struct ldlm_lock *lck; in ldlm_extent_shift_kms()
79 lck = list_entry(tmp, struct ldlm_lock, l_res_link); in ldlm_extent_shift_kms()
101 static void ldlm_interval_attach(struct ldlm_interval *n, struct ldlm_lock *l) in ldlm_interval_attach()
110 struct ldlm_interval *ldlm_interval_alloc(struct ldlm_lock *lock) in ldlm_interval_alloc()
133 struct ldlm_interval *ldlm_interval_detach(struct ldlm_lock *l) in ldlm_interval_detach()
161 struct ldlm_lock *lock) in ldlm_extent_add_lock()
200 void ldlm_extent_unlink_lock(struct ldlm_lock *lock) in ldlm_extent_unlink_lock()
Dldlm_request.c82 struct ldlm_lock *lwd_lock;
93 struct ldlm_lock *lock = lwd->lwd_lock; in ldlm_expired_completion_wait()
132 static int ldlm_get_enq_timeout(struct ldlm_lock *lock) in ldlm_get_enq_timeout()
149 static int ldlm_completion_tail(struct ldlm_lock *lock) in ldlm_completion_tail()
175 int ldlm_completion_ast_async(struct ldlm_lock *lock, __u64 flags, void *data) in ldlm_completion_ast_async()
214 int ldlm_completion_ast(struct ldlm_lock *lock, __u64 flags, void *data) in ldlm_completion_ast()
288 struct ldlm_lock *lock, int mode) in failed_lock_cleanup()
340 struct ldlm_lock *lock; in ldlm_cli_enqueue_fini()
661 struct ldlm_lock *lock; in ldlm_cli_enqueue()
793 static __u64 ldlm_cli_cancel_local(struct ldlm_lock *lock) in ldlm_cli_cancel_local()
[all …]
Dl_lock.c51 struct ldlm_resource *lock_res_and_lock(struct ldlm_lock *lock) in lock_res_and_lock()
65 void unlock_res_and_lock(struct ldlm_lock *lock) in unlock_res_and_lock()
Dldlm_lockd.c67 struct ldlm_lock *ca_lock;
106 struct ldlm_lock *blwi_lock;
120 struct ldlm_lock_desc *ld, struct ldlm_lock *lock) in ldlm_handle_bl_callback()
160 struct ldlm_lock *lock) in ldlm_handle_cp_callback()
309 struct ldlm_lock *lock) in ldlm_handle_gl_callback()
385 struct ldlm_lock *lock, in init_blwi()
418 struct ldlm_lock *lock, in ldlm_bl_to_thread()
447 struct ldlm_lock *lock) in ldlm_bl_to_thread_lock()
538 struct ldlm_lock *lock; in ldlm_callback_handler()
1092 sizeof(struct ldlm_lock), 0, in ldlm_init()
Dldlm_resource.c730 extern struct ldlm_lock *ldlm_lock_get(struct ldlm_lock *lock);
748 struct ldlm_lock *lock = NULL; in cleanup_resource()
755 lock = list_entry(tmp, struct ldlm_lock, in cleanup_resource()
1263 struct ldlm_lock *lock) in ldlm_resource_add_lock()
1279 void ldlm_resource_unlink_lock(struct ldlm_lock *lock) in ldlm_resource_unlink_lock()
1364 struct ldlm_lock *lock; in ldlm_resource_dump()
Dldlm_pool.c724 void ldlm_pool_add(struct ldlm_pool *pl, struct ldlm_lock *lock) in ldlm_pool_add()
750 void ldlm_pool_del(struct ldlm_pool *pl, struct ldlm_lock *lock) in ldlm_pool_del()
Dldlm_lib.c821 struct ldlm_lock *lock; in ldlm_dump_export_locks()
/drivers/staging/lustre/lustre/osc/
Dosc_lock.c77 static struct ldlm_lock *osc_handle_ptr(struct lustre_handle *handle) in osc_handle_ptr()
79 struct ldlm_lock *lock; in osc_handle_ptr()
92 struct ldlm_lock *lock = osc_handle_ptr(&ols->ols_handle); in osc_lock_invariant()
93 struct ldlm_lock *olock = ols->ols_lock; in osc_lock_invariant()
148 struct ldlm_lock *dlmlock; in osc_lock_detach()
288 static struct osc_lock *osc_ast_data_get(struct ldlm_lock *dlm_lock) in osc_ast_data_get()
358 struct ldlm_lock *dlmlock; in osc_lock_lvb_update()
402 struct ldlm_lock *dlmlock, int rc) in osc_lock_granted()
444 struct ldlm_lock *dlmlock; in osc_lock_upcall0()
508 struct ldlm_lock *dlmlock; in osc_lock_upcall()
[all …]
Dosc_internal.h76 struct ldlm_lock *oap_ldlm_lock;
180 int osc_dlm_lock_pageref(struct ldlm_lock *dlm);
Dosc_cl_internal.h250 struct ldlm_lock *ols_lock;
Dosc_request.c1829 struct ldlm_lock *lock = NULL; in osc_build_rpc()
2022 static int osc_set_lock_data_with_check(struct ldlm_lock *lock, in osc_set_lock_data_with_check()
2051 struct ldlm_lock *lock = ldlm_handle2lock(lockh); in osc_set_data_with_check()
2121 struct ldlm_lock *lock; in osc_enqueue_interpret()
2235 struct ldlm_lock *matched = ldlm_handle2lock(lockh); in osc_enqueue_base()
3074 static int osc_cancel_for_recovery(struct ldlm_lock *lock) in osc_cancel_for_recovery()
/drivers/staging/lustre/lustre/ptlrpc/
DMakefile4 ldlm_objs := $(LDLM)l_lock.o $(LDLM)ldlm_lock.o
/drivers/staging/lustre/lustre/lmv/
Dlmv_internal.h71 int lmv_blocking_ast(struct ldlm_lock *, struct ldlm_lock_desc *,
/drivers/staging/lustre/lustre/llite/
Ddcache.c108 static inline int return_if_equal(struct ldlm_lock *lock, void *data) in return_if_equal()
Dfile.c714 static int ll_md_blocking_lease_ast(struct ldlm_lock *lock, in ll_md_blocking_lease_ast()
884 struct ldlm_lock *lock; in ll_lease_close()
2460 struct ldlm_lock *lock = NULL; in ll_file_ioctl()
2810 struct ldlm_lock *lock; in ll_have_md_lock()
3268 struct ldlm_lock *lock = conf->coc_lock; in ll_layout_conf()
3284 static int ll_layout_fetch(struct inode *inode, struct ldlm_lock *lock) in ll_layout_fetch()
3362 struct ldlm_lock *lock; in ll_layout_lock_set()
Dllite_internal.h685 int ll_md_blocking_ast(struct ldlm_lock *, struct ldlm_lock_desc *,
766 struct inode *ll_inode_from_resource_lock(struct ldlm_lock *lock);
/drivers/staging/lustre/lustre/mdc/
Dmdc_locks.c121 struct ldlm_lock *lock; in mdc_set_lock_data()
558 struct ldlm_lock *lock; in mdc_finish_enqueue()
930 struct ldlm_lock *lock; in mdc_finish_intent_lock()
Dmdc_lib.c456 struct ldlm_lock *lock; in mdc_hsm_release_pack()
/drivers/staging/lustre/lustre/obdclass/
Dgenops.c967 void __class_export_add_lock_ref(struct obd_export *exp, struct ldlm_lock *lock) in __class_export_add_lock_ref()
988 void __class_export_del_lock_ref(struct obd_export *exp, struct ldlm_lock *lock) in __class_export_del_lock_ref()

12