Lines Matching refs:cw
2508 static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw, in grant_pending_convert() argument
2563 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_convert()
2564 *cw = 1; in grant_pending_convert()
2577 static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw, in grant_pending_wait() argument
2590 *cw = 1; in grant_pending_wait()
2602 static int lock_requires_bast(struct dlm_lkb *gr, int high, int cw) in lock_requires_bast() argument
2604 if (gr->lkb_grmode == DLM_LOCK_PR && cw) { in lock_requires_bast()
2620 int cw = 0; in grant_pending_locks() local
2628 high = grant_pending_convert(r, high, &cw, count); in grant_pending_locks()
2629 high = grant_pending_wait(r, high, &cw, count); in grant_pending_locks()
2641 if (lkb->lkb_bastfn && lock_requires_bast(lkb, high, cw)) { in grant_pending_locks()
2642 if (cw && high == DLM_LOCK_PR && in grant_pending_locks()