Lines Matching refs:pbp
944 struct bio *pbp;
950 pbp = bp->bio_parent;
980 pbp->bio_inbed++;
981 KASSERT(pbp->bio_inbed <= pbp->bio_children,
982 ("bio_inbed (%u) is bigger than bio_children (%u).", pbp->bio_inbed,
983 pbp->bio_children));
984 if (bp->bio_error == 0 && pbp->bio_error == 0) {
987 if (pbp->bio_children == pbp->bio_inbed) {
988 G_MIRROR_LOGREQ(3, pbp, "Request delivered.");
989 pbp->bio_completed = pbp->bio_length;
990 if (pbp->bio_cmd == BIO_WRITE ||
991 pbp->bio_cmd == BIO_DELETE) {
992 TAILQ_REMOVE(&sc->sc_inflight, pbp, bio_queue);
996 g_io_deliver(pbp, pbp->bio_error);
1000 if (pbp->bio_error == 0)
1001 pbp->bio_error = bp->bio_error;
1004 switch (pbp->bio_cmd) {
1008 pbp->bio_inbed--;
1009 pbp->bio_children--;
1015 switch (pbp->bio_cmd) {
1017 if (pbp->bio_inbed < pbp->bio_children)
1020 g_io_deliver(pbp, pbp->bio_error);
1022 pbp->bio_error = 0;
1024 TAILQ_INSERT_TAIL(&sc->sc_queue, pbp, bio_queue);
1033 if (pbp->bio_children == 0) {
1037 } else if (pbp->bio_inbed < pbp->bio_children) {
1040 } else if (pbp->bio_children == pbp->bio_inbed) {
1042 pbp->bio_error = 0;
1043 pbp->bio_completed = pbp->bio_length;
1045 if (pbp->bio_cmd == BIO_WRITE || pbp->bio_cmd == BIO_DELETE) {
1046 TAILQ_REMOVE(&sc->sc_inflight, pbp, bio_queue);
1050 g_io_deliver(pbp, pbp->bio_error);
1053 KASSERT(1 == 0, ("Invalid request: %u.", pbp->bio_cmd));