Lines Matching refs:cw
2454 cw if there's a blocked conversion to DLM_LOCK_CW. */
2456 static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw,
2511 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW)
2512 *cw = 1;
2525 static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw,
2538 *cw = 1;
2545 /* cw of 1 means there's a lock with a rqmode of DLM_LOCK_CW that's blocked
2550 static int lock_requires_bast(struct dlm_lkb *gr, int high, int cw)
2552 if (gr->lkb_grmode == DLM_LOCK_PR && cw) {
2568 int cw = 0;
2576 high = grant_pending_convert(r, high, &cw, count);
2577 high = grant_pending_wait(r, high, &cw, count);
2589 if (lkb->lkb_bastfn && lock_requires_bast(lkb, high, cw)) {
2590 if (cw && high == DLM_LOCK_PR &&