Lines Matching refs:pbp
234 struct bio *pbp;
237 pbp = bp->bio_parent;
238 if (pbp->bio_error == 0 && bp->bio_error != 0)
239 pbp->bio_error = bp->bio_error;
244 pbp->bio_inbed++;
245 if (pbp->bio_inbed < pbp->bio_children)
247 sc = pbp->bio_to->geom->softc;
248 if (pbp->bio_error != 0) {
249 G_ELI_LOGREQ(0, pbp, "%s() failed (error=%d)", __func__,
250 pbp->bio_error);
251 pbp->bio_completed = 0;
252 if (pbp->bio_driver2 != NULL) {
253 free(pbp->bio_driver2, M_ELI);
254 pbp->bio_driver2 = NULL;
256 g_io_deliver(pbp, pbp->bio_error);
262 bioq_insert_tail(&sc->sc_queue, pbp);
276 struct bio *pbp;
279 pbp = bp->bio_parent;
280 if (pbp->bio_error == 0 && bp->bio_error != 0)
281 pbp->bio_error = bp->bio_error;
286 pbp->bio_inbed++;
287 if (pbp->bio_inbed < pbp->bio_children)
289 free(pbp->bio_driver2, M_ELI);
290 pbp->bio_driver2 = NULL;
291 if (pbp->bio_error != 0) {
292 G_ELI_LOGREQ(0, pbp, "%s() failed (error=%d)", __func__,
293 pbp->bio_error);
294 pbp->bio_completed = 0;
296 pbp->bio_completed = pbp->bio_length;
301 sc = pbp->bio_to->geom->softc;
302 g_io_deliver(pbp, pbp->bio_error);