Home
last modified time | relevance | path

Searched refs:lockh (Results 1 – 19 of 19) sorted by relevance

/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_locks.c118 int mdc_set_lock_data(struct obd_export *exp, __u64 *lockh, void *data, in mdc_set_lock_data() argument
127 if (!*lockh) in mdc_set_lock_data()
130 lock = ldlm_handle2lock((struct lustre_handle *)lockh); in mdc_set_lock_data()
157 struct lustre_handle *lockh) in mdc_lock_match() argument
166 &res_id, type, policy, mode, lockh, 0); in mdc_lock_match()
563 struct lustre_handle *lockh, in mdc_finish_enqueue() argument
584 memset(lockh, 0, sizeof(*lockh)); in mdc_finish_enqueue()
587 lock = ldlm_handle2lock(lockh); in mdc_finish_enqueue()
593 ldlm_lock_addref(lockh, lock->l_req_mode); in mdc_finish_enqueue()
594 ldlm_lock_decref(lockh, einfo->ei_mode); in mdc_finish_enqueue()
[all …]
Dmdc_internal.h85 __u64 *lockh, void *data, __u64 *bits);
101 struct lustre_handle *lockh, void *lmm, int lmmsize,
171 struct lustre_handle *lockh);
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_dlm.h1156 struct lustre_handle *lockh);
1251 void ldlm_lock_addref(struct lustre_handle *lockh, __u32 mode);
1252 int ldlm_lock_addref_try(struct lustre_handle *lockh, __u32 mode);
1253 void ldlm_lock_decref(struct lustre_handle *lockh, __u32 mode);
1254 void ldlm_lock_decref_and_cancel(struct lustre_handle *lockh, __u32 mode);
1263 ldlm_mode_t ldlm_revalidate_lock_handle(struct lustre_handle *lockh,
1344 struct lustre_handle *lockh, int async);
1361 struct lustre_handle *lockh, int rc);
1371 struct lustre_handle *lockh);
1372 int ldlm_server_ast(struct lustre_handle *lockh, struct ldlm_lock_desc *new,
[all …]
Dobd_class.h1558 struct lustre_handle *lockh, in md_enqueue() argument
1567 rc = MDP(exp->exp_obd, enqueue)(exp, einfo, it, op_data, lockh, in md_enqueue()
1751 __u64 *lockh, void *data, __u64 *bits) in md_set_lock_data() argument
1755 return MDP(exp->exp_obd, set_lock_data)(exp, lockh, data, bits); in md_set_lock_data()
1780 struct lustre_handle *lockh) in md_lock_match() argument
1785 policy, mode, lockh); in md_lock_match()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_internal.h109 struct lustre_handle *lockh,
111 int osc_cancel_base(struct lustre_handle *lockh, __u32 mode);
115 __u64 *flags, void *data, struct lustre_handle *lockh,
Dosc_request.c2108 static int osc_set_data_with_check(struct lustre_handle *lockh, in osc_set_data_with_check() argument
2111 struct ldlm_lock *lock = ldlm_handle2lock(lockh); in osc_set_data_with_check()
2119 lockh, einfo->ei_cbdata); in osc_set_data_with_check()
2252 struct lustre_handle *lockh, in osc_enqueue_base() argument
2292 einfo->ei_type, policy, mode, lockh, 0); in osc_enqueue_base()
2294 struct ldlm_lock *matched = ldlm_handle2lock(lockh); in osc_enqueue_base()
2300 ldlm_lock_decref(lockh, mode); in osc_enqueue_base()
2308 ldlm_lock_addref(lockh, LCK_PR); in osc_enqueue_base()
2322 ldlm_lock_decref(lockh, LCK_PW); in osc_enqueue_base()
2325 ldlm_lock_decref(lockh, einfo->ei_mode); in osc_enqueue_base()
[all …]
Dosc_page.c70 struct lustre_handle *lockh;
80 lockh = &info->oti_handle;
92 dlmmode, &flags, NULL, lockh, unref);
Dosc_lock.c680 struct lustre_handle *lockh; in osc_dlm_blocking_ast0() local
682 lockh = &osc_env_info(env)->oti_handle; in osc_dlm_blocking_ast0()
683 ldlm_lock2handle(dlmlock, lockh); in osc_dlm_blocking_ast0()
684 result = ldlm_cli_cancel(lockh, LCF_ASYNC); in osc_dlm_blocking_ast0()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_lock.c552 void ldlm_lock2handle(const struct ldlm_lock *lock, struct lustre_handle *lockh) in ldlm_lock2handle() argument
554 lockh->cookie = lock->l_handle.h_cookie; in ldlm_lock2handle()
682 void ldlm_lock_addref(struct lustre_handle *lockh, __u32 mode) in ldlm_lock_addref() argument
686 lock = ldlm_handle2lock(lockh); in ldlm_lock_addref()
724 int ldlm_lock_addref_try(struct lustre_handle *lockh, __u32 mode) in ldlm_lock_addref_try() argument
730 lock = ldlm_handle2lock(lockh); in ldlm_lock_addref_try()
857 void ldlm_lock_decref(struct lustre_handle *lockh, __u32 mode) in ldlm_lock_decref() argument
859 struct ldlm_lock *lock = __ldlm_handle2lock(lockh, 0); in ldlm_lock_decref()
861 LASSERTF(lock != NULL, "Non-existing lock: %#llx\n", lockh->cookie); in ldlm_lock_decref()
874 void ldlm_lock_decref_and_cancel(struct lustre_handle *lockh, __u32 mode) in ldlm_lock_decref_and_cancel() argument
[all …]
Dldlm_request.c314 struct lustre_handle lockh; in ldlm_blocking_ast_nocheck() local
318 ldlm_lock2handle(lock, &lockh); in ldlm_blocking_ast_nocheck()
319 rc = ldlm_cli_cancel(&lockh, LCF_ASYNC); in ldlm_blocking_ast_nocheck()
404 struct lustre_handle *lockh) in ldlm_cli_enqueue_local() argument
426 ldlm_lock2handle(lock, lockh); in ldlm_cli_enqueue_local()
509 struct lustre_handle *lockh, int rc) in ldlm_cli_enqueue_fini() argument
518 lock = ldlm_handle2lock(lockh); in ldlm_cli_enqueue_fini()
852 struct lustre_handle *lockh, int async) in ldlm_cli_enqueue() argument
869 lock = ldlm_handle2lock_long(lockh, 0); in ldlm_cli_enqueue()
886 ldlm_lock2handle(lock, lockh); in ldlm_cli_enqueue()
[all …]
Dldlm_resource.c731 struct lustre_handle lockh; in cleanup_resource() local
734 ldlm_lock2handle(lock, &lockh); in cleanup_resource()
735 rc = ldlm_cli_cancel(&lockh, LCF_ASYNC); in cleanup_resource()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dxattr_cache.c284 struct lustre_handle lockh = { 0 }; in ll_xattr_find_get_lock() local
302 mode = ll_take_md_lock(inode, MDS_INODELOCK_XATTR, &lockh, 0, in ll_xattr_find_get_lock()
306 oit->d.lustre.it_lock_handle = lockh.cookie; in ll_xattr_find_get_lock()
322 rc = md_enqueue(exp, &einfo, oit, op_data, &lockh, NULL, 0, NULL, 0); in ll_xattr_find_get_lock()
Dfile.c272 struct lustre_handle lockh; in ll_md_close() local
318 LDLM_IBITS, &policy, lockmode, &lockh)) in ll_md_close()
723 struct lustre_handle lockh; in ll_md_blocking_lease_ast() local
727 ldlm_lock2handle(lock, &lockh); in ll_md_blocking_lease_ast()
728 rc = ldlm_cli_cancel(&lockh, LCF_ASYNC); in ll_md_blocking_lease_ast()
2690 struct lustre_handle lockh = {0}; in ll_file_flock() local
2782 op_data, &lockh, &flock, 0, NULL /* req */, flags); in ll_file_flock()
2795 op_data, &lockh, &flock, 0, NULL /* req */, flags); in ll_file_flock()
2822 struct lustre_handle lockh; in ll_have_md_lock() local
2844 &policy, mode, &lockh)) { in ll_have_md_lock()
[all …]
Ddir.c343 struct lustre_handle lockh; in ll_get_dir_page() local
356 ll_inode2fid(dir), LDLM_IBITS, &policy, mode, &lockh); in ll_get_dir_page()
374 op_data, &lockh, NULL, 0, NULL, 0); in ll_get_dir_page()
394 md_set_lock_data(ll_i2sbi(dir)->ll_md_exp, &lockh.cookie, in ll_get_dir_page()
397 ldlm_lock_dump_handle(D_OTHER, &lockh); in ll_get_dir_page()
472 ldlm_lock_decref(&lockh, mode); in ll_get_dir_page()
Dnamei.c170 struct lustre_handle lockh; in ll_md_blocking_ast() local
175 ldlm_lock2handle(lock, &lockh); in ll_md_blocking_ast()
176 rc = ldlm_cli_cancel(&lockh, LCF_ASYNC); in ll_md_blocking_ast()
Dllite_lib.c1694 struct lustre_handle lockh; in ll_update_inode() local
1702 &lockh, LDLM_FL_CBPENDING, in ll_update_inode()
1719 ldlm_lock_decref(&lockh, mode); in ll_update_inode()
2053 struct lustre_handle lockh; in ll_prep_inode() local
2056 lockh.cookie = it->d.lustre.it_lock_handle; in ll_prep_inode()
2057 lock = ldlm_handle2lock(&lockh); in ll_prep_inode()
Dllite_internal.h744 struct lustre_handle *lockh, __u64 flags,
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c774 struct lustre_handle lockh; in mgc_blocking_ast() local
782 ldlm_lock2handle(lock, &lockh); in mgc_blocking_ast()
783 rc = ldlm_cli_cancel(&lockh, LCF_ASYNC); in mgc_blocking_ast()
877 struct lustre_handle *lockh) in mgc_enqueue() argument
913 NULL, 0, LVB_T_NONE, lockh, 0); in mgc_enqueue()
1553 struct lustre_handle lockh = { 0 }; in mgc_process_log() local
1577 cld, 0, NULL, &lockh); in mgc_process_log()
1581 rc = ldlm_lock_set_data(&lockh, (void *)cld); in mgc_process_log()
1609 ldlm_lock_decref(&lockh, LCK_CR); in mgc_process_log()
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c1731 struct lustre_handle *lockh, void *lmm, int lmmsize, in lmv_enqueue_remote() argument
1759 memcpy(&plock, lockh, sizeof(plock)); in lmv_enqueue_remote()
1781 rc = md_enqueue(tgt->ltd_exp, einfo, it, rdata, lockh, in lmv_enqueue_remote()
1792 struct lustre_handle *lockh, void *lmm, int lmmsize, in lmv_enqueue() argument
1814 rc = md_enqueue(tgt->ltd_exp, einfo, it, op_data, lockh, in lmv_enqueue()
1818 rc = lmv_enqueue_remote(exp, einfo, it, op_data, lockh, in lmv_enqueue()
2554 static int lmv_set_lock_data(struct obd_export *exp, __u64 *lockh, void *data, in lmv_set_lock_data() argument
2560 rc = md_set_lock_data(lmv->tgts[0]->ltd_exp, lockh, data, bits); in lmv_set_lock_data()
2567 struct lustre_handle *lockh) in lmv_lock_match() argument
2589 type, policy, mode, lockh); in lmv_lock_match()