Lines Matching refs:cw
2473 static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw, in grant_pending_convert() argument
2528 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_convert()
2529 *cw = 1; in grant_pending_convert()
2542 static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw, in grant_pending_wait() argument
2555 *cw = 1; in grant_pending_wait()
2567 static int lock_requires_bast(struct dlm_lkb *gr, int high, int cw) in lock_requires_bast() argument
2569 if (gr->lkb_grmode == DLM_LOCK_PR && cw) { in lock_requires_bast()
2585 int cw = 0; in grant_pending_locks() local
2593 high = grant_pending_convert(r, high, &cw, count); in grant_pending_locks()
2594 high = grant_pending_wait(r, high, &cw, count); in grant_pending_locks()
2606 if (lkb->lkb_bastfn && lock_requires_bast(lkb, high, cw)) { in grant_pending_locks()
2607 if (cw && high == DLM_LOCK_PR && in grant_pending_locks()