Home
last modified time | relevance | path

Searched refs:l_granted_mode (Results 1 – 12 of 12) sorted by relevance

/drivers/staging/lustre/lustre/ldlm/
Dldlm_flock.c195 if (lockmode_compat(lock->l_granted_mode, mode)) in ldlm_process_flock_lock()
214 req->l_req_mode = lock->l_granted_mode; in ldlm_process_flock_lock()
252 if (lock->l_granted_mode == mode) { in ldlm_process_flock_lock()
338 lock->l_granted_mode, &null_cbs, in ldlm_process_flock_lock()
342 ldlm_flock_destroy(req, lock->l_granted_mode, in ldlm_process_flock_lock()
352 new2->l_granted_mode = lock->l_granted_mode; in ldlm_process_flock_lock()
375 lock->l_granted_mode); in ldlm_process_flock_lock()
388 req->l_granted_mode = req->l_req_mode; in ldlm_process_flock_lock()
464 if (lock->l_req_mode == lock->l_granted_mode && in ldlm_flock_completion_ast()
465 lock->l_granted_mode != LCK_NL && in ldlm_flock_completion_ast()
[all …]
Dldlm_extent.c168 LASSERT(lock->l_granted_mode == lock->l_req_mode); in ldlm_extent_add_lock()
174 idx = lock_mode_to_index(lock->l_granted_mode); in ldlm_extent_add_lock()
175 LASSERT(lock->l_granted_mode == 1 << idx); in ldlm_extent_add_lock()
176 LASSERT(lock->l_granted_mode == res->lr_itree[idx].lit_mode); in ldlm_extent_add_lock()
210 idx = lock_mode_to_index(lock->l_granted_mode); in ldlm_extent_unlink_lock()
211 LASSERT(lock->l_granted_mode == 1 << idx); in ldlm_extent_unlink_lock()
Dldlm_lock.c602 desc->l_granted_mode = lock->l_granted_mode; in ldlm_lock2desc()
1013 LASSERT(lock->l_req_mode == lock->l_granted_mode); in ldlm_grant_lock_with_skiplist()
1036 lock->l_granted_mode = lock->l_req_mode; in ldlm_grant_lock()
1044 if (lock->l_granted_mode < res->lr_most_restr) in ldlm_grant_lock()
1045 res->lr_most_restr = lock->l_granted_mode; in ldlm_grant_lock()
1345 mode = lock->l_granted_mode; in ldlm_revalidate_lock_handle()
1534 if (lock->l_req_mode == lock->l_granted_mode) { in ldlm_lock_enqueue()
1670 desc.l_granted_mode = 0; in ldlm_work_revoke_ast_lock()
1837 if (lock->l_granted_mode == lock->l_req_mode) in ldlm_lock_cancel()
1842 lock->l_granted_mode = LCK_MINMODE; in ldlm_lock_cancel()
[all …]
Dldlm_lockd.c174 if (lock->l_granted_mode == lock->l_req_mode || in ldlm_handle_cp_callback()
218 lock->l_granted_mode == lock->l_req_mode) { in ldlm_handle_cp_callback()
228 if (dlm_req->lock_desc.l_granted_mode != lock->l_req_mode) { in ldlm_handle_cp_callback()
229 lock->l_req_mode = dlm_req->lock_desc.l_granted_mode; in ldlm_handle_cp_callback()
326 if (lock->l_granted_mode == LCK_PW && in ldlm_handle_gl_callback()
Dldlm_request.c295 if ((lock->l_req_mode != lock->l_granted_mode) && in failed_lock_cleanup()
486 if (lock->l_req_mode != lock->l_granted_mode) in ldlm_cli_enqueue_fini()
1494 if (lockmode_compat(lock->l_granted_mode, mode)) in ldlm_cancel_resource_local()
1874 if (lock->l_granted_mode == lock->l_req_mode) in replay_one_lock()
1876 else if (lock->l_granted_mode) in replay_one_lock()
Dldlm_internal.h307 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()
417 descr->cld_mode = osc_ldlm2cl_lock(dlmlock->l_granted_mode); in osc_lock_granted()
461 if (dlmlock->l_granted_mode == dlmlock->l_req_mode) in osc_lock_upcall0()
809 } else if (dlmlock->l_granted_mode == in osc_ldlm_completion_ast()
Dosc_request.c3085 (lock->l_granted_mode == LCK_PR || in osc_cancel_for_recovery()
3086 lock->l_granted_mode == LCK_CR) && in osc_cancel_for_recovery()
/drivers/staging/lustre/lustre/include/
Dlustre_dlm.h644 ldlm_mode_t l_granted_mode; member
/drivers/staging/lustre/lustre/ptlrpc/
Dwiretest.c3004 LASSERTF((int)offsetof(struct ldlm_lock_desc, l_granted_mode) == 44, "found %lld\n", in lustre_assert_wire_constants()
3005 (long long)(int)offsetof(struct ldlm_lock_desc, l_granted_mode)); in lustre_assert_wire_constants()
3006 LASSERTF((int)sizeof(((struct ldlm_lock_desc *)0)->l_granted_mode) == 4, "found %lld\n", in lustre_assert_wire_constants()
3007 (long long)(int)sizeof(((struct ldlm_lock_desc *)0)->l_granted_mode)); in lustre_assert_wire_constants()
Dpack_generic.c2014 __swab32s(&l->l_granted_mode); in lustre_swab_ldlm_lock_desc()
/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h2779 ldlm_mode_t l_granted_mode; member