Lines Matching refs:cw
2506 static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw, in grant_pending_convert() argument
2561 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_convert()
2562 *cw = 1; in grant_pending_convert()
2575 static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw, in grant_pending_wait() argument
2588 *cw = 1; in grant_pending_wait()
2600 static int lock_requires_bast(struct dlm_lkb *gr, int high, int cw) in lock_requires_bast() argument
2602 if (gr->lkb_grmode == DLM_LOCK_PR && cw) { in lock_requires_bast()
2618 int cw = 0; in grant_pending_locks() local
2626 high = grant_pending_convert(r, high, &cw, count); in grant_pending_locks()
2627 high = grant_pending_wait(r, high, &cw, count); in grant_pending_locks()
2639 if (lkb->lkb_bastfn && lock_requires_bast(lkb, high, cw)) { in grant_pending_locks()
2640 if (cw && high == DLM_LOCK_PR && in grant_pending_locks()