Lines Matching refs:flags
49 clear_bit(LFL_AST_WAIT, &lp->flags); in wake_up_ast()
51 wake_up_bit(&lp->flags, LFL_AST_WAIT); in wake_up_ast()
87 lp->flags); in process_complete()
96 if (test_and_clear_bit(LFL_DLM_UNLOCK, &lp->flags)) { in process_complete()
101 lp->flags); in process_complete()
109 if (test_and_clear_bit(LFL_UNLOCK_DELETE, &lp->flags)) { in process_complete()
131 if (test_and_clear_bit(LFL_CANCEL, &lp->flags)) { in process_complete()
158 lp->flags); in process_complete()
166 if (test_and_clear_bit(LFL_SYNC_LVB, &lp->flags)) { in process_complete()
177 if (test_and_clear_bit(LFL_REREQUEST, &lp->flags)) { in process_complete()
190 set_bit(LFL_NOCACHE, &lp->flags); in process_complete()
192 if (test_bit(DFL_BLOCK_LOCKS, &ls->flags) && in process_complete()
193 !test_bit(LFL_NOBLOCK, &lp->flags)) in process_complete()
209 if (test_bit(DFL_BLOCK_LOCKS, &ls->flags) && in process_complete()
210 !test_bit(LFL_NOBLOCK, &lp->flags) && in process_complete()
224 set_bit(LFL_REREQUEST, &lp->flags); in process_complete()
235 set_bit(LFL_NOCACHE, &lp->flags); in process_complete()
242 if (test_bit(LFL_INLOCK, &lp->flags)) { in process_complete()
243 clear_bit(LFL_NOBLOCK, &lp->flags); in process_complete()
253 clear_bit(LFL_NOBLOCK, &lp->flags); in process_complete()
265 clear_bit(LFL_ACTIVE, &lp->flags); in gdlm_ast()
432 if (test_bit(DFL_BLOCK_LOCKS, &ls->flags) && in gdlm_do_lock()
433 !test_bit(LFL_NOBLOCK, &lp->flags) && lp->req != DLM_LOCK_NL) { in gdlm_do_lock()
442 if (test_bit(LFL_NOBAST, &lp->flags)) in gdlm_do_lock()
445 set_bit(LFL_ACTIVE, &lp->flags); in gdlm_do_lock()
465 lp->cur, lp->req, lp->lkf, lp->flags); in gdlm_do_lock()
477 set_bit(LFL_DLM_UNLOCK, &lp->flags); in gdlm_do_unlock()
478 set_bit(LFL_ACTIVE, &lp->flags); in gdlm_do_unlock()
493 lp->cur, lp->req, lp->lkf, lp->flags); in gdlm_do_unlock()
500 unsigned int req_state, unsigned int flags) in gdlm_lock() argument
510 clear_bit(LFL_DLM_CANCEL, &lp->flags); in gdlm_lock()
511 if (flags & LM_FLAG_NOEXP) in gdlm_lock()
512 set_bit(LFL_NOBLOCK, &lp->flags); in gdlm_lock()
516 lp->lkf = make_flags(lp, flags, lp->cur, lp->req); in gdlm_lock()
525 clear_bit(LFL_DLM_CANCEL, &lp->flags); in gdlm_unlock()
537 if (test_bit(LFL_DLM_CANCEL, &lp->flags)) in gdlm_cancel()
541 (unsigned long long)lp->lockname.ln_number, lp->flags); in gdlm_cancel()
551 set_bit(LFL_CANCEL, &lp->flags); in gdlm_cancel()
552 set_bit(LFL_ACTIVE, &lp->flags); in gdlm_cancel()
557 if (!test_bit(LFL_ACTIVE, &lp->flags) || in gdlm_cancel()
558 test_bit(LFL_DLM_UNLOCK, &lp->flags)) { in gdlm_cancel()
561 (unsigned long long)lp->lockname.ln_number, lp->flags); in gdlm_cancel()
567 set_bit(LFL_DLM_CANCEL, &lp->flags); in gdlm_cancel()
568 set_bit(LFL_ACTIVE, &lp->flags); in gdlm_cancel()
575 (unsigned long long)lp->lockname.ln_number, lp->flags); in gdlm_cancel()
578 clear_bit(LFL_DLM_CANCEL, &lp->flags); in gdlm_cancel()
630 set_bit(LFL_NOBAST, &lpn->flags); in hold_null_lock()
631 set_bit(LFL_INLOCK, &lpn->flags); in hold_null_lock()
632 set_bit(LFL_AST_WAIT, &lpn->flags); in hold_null_lock()
635 wait_on_bit(&lpn->flags, LFL_AST_WAIT, gdlm_ast_wait, TASK_UNINTERRUPTIBLE); in hold_null_lock()
661 set_bit(LFL_UNLOCK_DELETE, &lpn->flags); in unhold_null_lock()