Lines Matching refs:cw
2503 static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw, in grant_pending_convert() argument
2558 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_convert()
2559 *cw = 1; in grant_pending_convert()
2572 static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw, in grant_pending_wait() argument
2585 *cw = 1; in grant_pending_wait()
2597 static int lock_requires_bast(struct dlm_lkb *gr, int high, int cw) in lock_requires_bast() argument
2599 if (gr->lkb_grmode == DLM_LOCK_PR && cw) { in lock_requires_bast()
2615 int cw = 0; in grant_pending_locks() local
2623 high = grant_pending_convert(r, high, &cw, count); in grant_pending_locks()
2624 high = grant_pending_wait(r, high, &cw, count); in grant_pending_locks()
2636 if (lkb->lkb_bastfn && lock_requires_bast(lkb, high, cw)) { in grant_pending_locks()
2637 if (cw && high == DLM_LOCK_PR && in grant_pending_locks()