Lines Matching defs:pbp
961 struct bio *pbp;
967 pbp = bp->bio_parent;
1001 pbp->bio_inbed++;
1002 KASSERT(pbp->bio_inbed <= pbp->bio_children,
1003 ("bio_inbed (%u) is bigger than bio_children (%u).", pbp->bio_inbed,
1004 pbp->bio_children));
1005 if (bp->bio_error == 0 && pbp->bio_error == 0) {
1008 if (pbp->bio_children == pbp->bio_inbed) {
1009 G_MIRROR_LOGREQ(3, pbp, "Request delivered.");
1010 pbp->bio_completed = pbp->bio_length;
1011 if (pbp->bio_cmd == BIO_WRITE ||
1012 pbp->bio_cmd == BIO_DELETE) {
1013 TAILQ_REMOVE(&sc->sc_inflight, pbp, bio_queue);
1017 g_io_deliver(pbp, pbp->bio_error);
1021 if (pbp->bio_error == 0)
1022 pbp->bio_error = bp->bio_error;
1025 switch (pbp->bio_cmd) {
1030 pbp->bio_inbed--;
1031 pbp->bio_children--;
1037 switch (pbp->bio_cmd) {
1039 if (pbp->bio_inbed < pbp->bio_children)
1052 g_io_deliver(pbp, pbp->bio_error);
1054 pbp->bio_error = 0;
1056 TAILQ_INSERT_TAIL(&sc->sc_queue, pbp, bio_queue);
1066 if (pbp->bio_children == 0) {
1070 } else if (pbp->bio_inbed < pbp->bio_children) {
1073 } else if (pbp->bio_children == pbp->bio_inbed) {
1075 pbp->bio_error = 0;
1076 pbp->bio_completed = pbp->bio_length;
1078 if (pbp->bio_cmd == BIO_WRITE || pbp->bio_cmd == BIO_DELETE) {
1079 TAILQ_REMOVE(&sc->sc_inflight, pbp, bio_queue);
1083 g_io_deliver(pbp, pbp->bio_error);
1086 KASSERT(1 == 0, ("Invalid request: %u.", pbp->bio_cmd));