Lines Matching defs:cw
2281 cw if there's a blocked conversion to DLM_LOCK_CW. */
2283 static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw,
2338 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW)
2339 *cw = 1;
2352 static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw,
2365 *cw = 1;
2372 /* cw of 1 means there's a lock with a rqmode of DLM_LOCK_CW that's blocked
2377 static int lock_requires_bast(struct dlm_lkb *gr, int high, int cw)
2379 if (gr->lkb_grmode == DLM_LOCK_PR && cw) {
2395 int cw = 0;
2403 high = grant_pending_convert(r, high, &cw, count);
2404 high = grant_pending_wait(r, high, &cw, count);
2416 if (lkb->lkb_bastfn && lock_requires_bast(lkb, high, cw)) {
2417 if (cw && high == DLM_LOCK_PR &&