Lines Matching defs:pbp

872 	struct bio *pbp;
874 pbp = bp->bio_parent;
875 sc = pbp->bio_to->geom->softc;
877 if (pbp->bio_error == 0)
878 pbp->bio_error = bp->bio_error;
879 pbp->bio_completed += bp->bio_completed;
880 pbp->bio_inbed++;
881 if (pbp->bio_children == pbp->bio_inbed) {
883 g_io_deliver(pbp, pbp->bio_error);
907 struct bio *pbp;
911 pbp = bp->bio_parent;
912 sc = pbp->bio_to->geom->softc;
923 pbp->bio_inbed++;
924 KASSERT(pbp->bio_inbed <= pbp->bio_children,
925 ("bio_inbed (%u) is bigger than bio_children (%u).", pbp->bio_inbed,
926 pbp->bio_children));
927 if (bp->bio_error == 0 && pbp->bio_error == 0) {
930 if (pbp->bio_children == pbp->bio_inbed) {
931 G_MIRROR_LOGREQ(3, pbp, "Request delivered.");
932 pbp->bio_completed = pbp->bio_length;
933 if (pbp->bio_cmd == BIO_WRITE ||
934 pbp->bio_cmd == BIO_DELETE) {
935 bioq_remove(&sc->sc_inflight, pbp);
939 g_io_deliver(pbp, pbp->bio_error);
943 if (pbp->bio_error == 0)
944 pbp->bio_error = bp->bio_error;
965 switch (pbp->bio_cmd) {
968 pbp->bio_inbed--;
969 pbp->bio_children--;
975 switch (pbp->bio_cmd) {
977 if (pbp->bio_inbed < pbp->bio_children)
980 g_io_deliver(pbp, pbp->bio_error);
982 pbp->bio_error = 0;
984 bioq_disksort(&sc->sc_queue, pbp);
992 if (pbp->bio_children == 0) {
996 } else if (pbp->bio_inbed < pbp->bio_children) {
999 } else if (pbp->bio_children == pbp->bio_inbed) {
1001 pbp->bio_error = 0;
1002 pbp->bio_completed = pbp->bio_length;
1004 bioq_remove(&sc->sc_inflight, pbp);
1007 g_io_deliver(pbp, pbp->bio_error);
1010 KASSERT(1 == 0, ("Invalid request: %u.", pbp->bio_cmd));