Lines Matching refs:cw
2515 static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw, in grant_pending_convert() argument
2557 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_convert()
2558 *cw = 1; in grant_pending_convert()
2571 static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw, in grant_pending_wait() argument
2584 *cw = 1; in grant_pending_wait()
2596 static int lock_requires_bast(struct dlm_lkb *gr, int high, int cw) in lock_requires_bast() argument
2598 if (gr->lkb_grmode == DLM_LOCK_PR && cw) { in lock_requires_bast()
2614 int cw = 0; in grant_pending_locks() local
2622 high = grant_pending_convert(r, high, &cw, count); in grant_pending_locks()
2623 high = grant_pending_wait(r, high, &cw, count); in grant_pending_locks()
2635 if (lkb->lkb_bastfn && lock_requires_bast(lkb, high, cw)) { in grant_pending_locks()
2636 if (cw && high == DLM_LOCK_PR && in grant_pending_locks()