Home
last modified time | relevance | path

Searched refs:l_req_mode (Results 1 – 15 of 15) sorted by relevance

/drivers/staging/lustre/lustre/ldlm/
Dldlm_lock.c624 desc->l_req_mode = lock->l_req_mode; in ldlm_lock2desc()
930 if (lock->l_req_mode != req->l_req_mode) { in search_granted_lock()
1037 LASSERT(lock->l_req_mode == lock->l_granted_mode); in ldlm_grant_lock_with_skiplist()
1060 lock->l_granted_mode = lock->l_req_mode; in ldlm_grant_lock()
1118 if (!(lock->l_req_mode & *mode)) in search_queue()
1120 match = lock->l_req_mode; in search_queue()
1250 mode = old_lock->l_req_mode; in ldlm_lock_match()
1516 lock->l_req_mode = mode; in ldlm_lock_create()
1577 rc = ns->ns_policy(ns, lockp, cookie, lock->l_req_mode, *flags, in ldlm_lock_enqueue()
1605 if (local && lock->l_req_mode == lock->l_granted_mode) { in ldlm_lock_enqueue()
[all …]
Dldlm_flock.c256 ldlm_mode_t mode = req->l_req_mode; in ldlm_process_flock_lock()
333 req->l_req_mode = lock->l_granted_mode; in ldlm_process_flock_lock()
365 req->l_req_mode = LCK_NL; in ldlm_process_flock_lock()
447 ldlm_flock_destroy(lock, lock->l_req_mode, *flags); in ldlm_process_flock_lock()
521 req->l_granted_mode = req->l_req_mode; in ldlm_process_flock_lock()
600 if (lock->l_req_mode == lock->l_granted_mode && in ldlm_flock_completion_ast()
603 ldlm_lock_decref_internal(lock, lock->l_req_mode); in ldlm_flock_completion_ast()
Dldlm_request.c473 if ((lock->l_req_mode != lock->l_granted_mode) && in failed_lock_cleanup()
610 int newmode = reply->lock_desc.l_req_mode; in ldlm_cli_enqueue_fini()
612 if (newmode && newmode != lock->l_req_mode) { in ldlm_cli_enqueue_fini()
615 lock->l_req_mode = newmode; in ldlm_cli_enqueue_fini()
665 if (lock->l_req_mode != lock->l_granted_mode) in ldlm_cli_enqueue_fini()
1043 body->lock_desc.l_req_mode = new_mode; in ldlm_cli_convert()
2186 if (lock->l_granted_mode == lock->l_req_mode) in replay_one_lock()
Dldlm_lockd.c196 if (lock->l_granted_mode == lock->l_req_mode || in ldlm_handle_cp_callback()
242 lock->l_granted_mode == lock->l_req_mode) { in ldlm_handle_cp_callback()
252 if (dlm_req->lock_desc.l_granted_mode != lock->l_req_mode) { in ldlm_handle_cp_callback()
253 lock->l_req_mode = dlm_req->lock_desc.l_granted_mode; in ldlm_handle_cp_callback()
Dldlm_extent.c168 LASSERT(lock->l_granted_mode == lock->l_req_mode); in ldlm_extent_add_lock()
Dldlm_internal.h276 if (((lock->l_req_mode == lock->l_granted_mode) && in is_granted_or_cancelled()
/drivers/staging/lustre/lustre/osc/
Dosc_lock.c131 olock->l_req_mode == olock->l_granted_mode && in osc_lock_invariant()
165 if (dlmlock->l_granted_mode == dlmlock->l_req_mode) { in osc_lock_detach()
408 LASSERT(dlmlock->l_granted_mode == dlmlock->l_req_mode); in osc_lock_granted()
461 if (dlmlock->l_granted_mode == dlmlock->l_req_mode) in osc_lock_upcall0()
810 dlmlock->l_req_mode) { in osc_ldlm_completion_ast()
/drivers/staging/lustre/lustre/mdc/
Dmdc_locks.c594 if (lock->l_req_mode != einfo->ei_mode) { in mdc_finish_enqueue()
595 ldlm_lock_addref(lockh, lock->l_req_mode); in mdc_finish_enqueue()
597 einfo->ei_mode = lock->l_req_mode; in mdc_finish_enqueue()
/drivers/staging/lustre/lustre/llite/
Dnamei.c231 ll_have_md_lock(inode, &bits, lock->l_req_mode); in ll_md_blocking_ast()
236 switch (lock->l_req_mode) { in ll_md_blocking_ast()
Dfile.c2825 int ll_have_md_lock(struct inode *inode, __u64 *bits, ldlm_mode_t l_req_mode) in ll_have_md_lock() argument
2829 ldlm_mode_t mode = (l_req_mode == LCK_MINMODE) ? in ll_have_md_lock()
2830 (LCK_CR|LCK_CW|LCK_PR|LCK_PW) : l_req_mode; in ll_have_md_lock()
Dllite_internal.h742 ldlm_mode_t l_req_mode);
/drivers/staging/lustre/lustre/include/
Dlustre_dlm.h711 ldlm_mode_t l_req_mode; member
/drivers/staging/lustre/lustre/ptlrpc/
Dwiretest.c3002 LASSERTF((int)offsetof(struct ldlm_lock_desc, l_req_mode) == 40, "found %lld\n", in lustre_assert_wire_constants()
3003 (long long)(int)offsetof(struct ldlm_lock_desc, l_req_mode)); in lustre_assert_wire_constants()
3004 LASSERTF((int)sizeof(((struct ldlm_lock_desc *)0)->l_req_mode) == 4, "found %lld\n", in lustre_assert_wire_constants()
3005 (long long)(int)sizeof(((struct ldlm_lock_desc *)0)->l_req_mode)); in lustre_assert_wire_constants()
Dpack_generic.c2247 __swab32s(&l->l_req_mode); in lustre_swab_ldlm_lock_desc()
/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h2795 ldlm_mode_t l_req_mode; member