Home | History | Annotate | Download | only in raidframe

Lines Matching defs:candidate

128 /* Determines if a candidate lock request conflicts with a predecessor
133 * a candidate read conflicts with a predecessor write if any
136 * a candidate write conflicts with a predecessor read if any
139 * a candidate write conflicts with a predecessor write if any
386 RF_LockReqDesc_t *candidate, *candidate_t, *predecessor;
487 for (candidate_t = NULL, candidate = lockDesc->waitersH;
488 candidate;) {
492 if (RANGE_OVERLAP(lockReqDesc, candidate))
496 if (RANGE_OVERLAP(t, candidate)) {
503 Dprintf8("[%d] No overlap: rejecting candidate stripeID %ld, type %c range %ld-%ld %ld-%ld table 0x%lx\n",
504 tid, stripeID, candidate->type, candidate->start, candidate->stop, candidate->start2, candidate->stop2,
509 candidate_t = candidate;
510 candidate = candidate->next;
513 /* we have a candidate for release. check to
519 if (STRIPELOCK_CONFLICT(candidate,
523 Dprintf8("[%d] Conflicts with granted lock: rejecting candidate stripeID %ld, type %c range %ld-%ld %ld-%ld table 0x%lx\n",
524 tid, stripeID, candidate->type, candidate->start, candidate->stop, candidate->start2, candidate->stop2,
534 /* now check to see if the candidate is
539 predecessor != candidate;
541 if (STRIPELOCK_CONFLICT(candidate,
545 Dprintf8("[%d] Conflicts with waiting lock: rejecting candidate stripeID %ld, type %c range %ld-%ld %ld-%ld table 0x%lx\n",
546 tid, stripeID, candidate->type, candidate->start, candidate->stop, candidate->start2, candidate->stop2,
560 Dprintf8("[%d] Granting lock to candidate stripeID %ld, type %c range %ld-%ld %ld-%ld table 0x%lx\n",
561 tid, stripeID, candidate->type, candidate->start, candidate->stop, candidate->start2, candidate->stop2,
567 candidate_t->next = candidate->next;
568 if (lockDesc->waitersT == candidate)
571 RF_ASSERT(candidate == lockDesc->waitersH);
577 candidate->next = lockDesc->granted;
578 lockDesc->granted = candidate;
580 RF_ASSERT(!candidate->templink);
583 candidate->templink = callbacklist;
585 callbacklist = candidate;
588 candidate = lockDesc->waitersH;
590 candidate = candidate_t->next;
593 candidate_t = candidate;
595 candidate = candidate->next;
625 for (candidate = callbacklist; candidate;) {
626 t = candidate;
627 candidate = candidate->templink;