Lines Matching refs:pbp
660 struct bio *pbp;
772 pbp = bp->bio_parent;
773 pbp->bio_inbed++;
794 if (pbp->bio_children == 1)
801 mask = (uintptr_t *)(&pbp->bio_driver2);
802 if (pbp->bio_children == 1) {
804 pbp->bio_driver1 = do_write ? sd : NULL;
808 nsd = g_raid_tr_raid1_select_read_disk(vol, pbp, *mask);
809 if (nsd != NULL && (cbp = g_clone_bio(pbp)) != NULL) {
813 if (pbp->bio_children == 2 && do_write) {
816 pbp->bio_pflags = G_RAID_BIO_FLAG_LOCKED;
819 cbp->bio_offset, cbp->bio_length, pbp, cbp);
835 pbp->bio_children > 1 &&
836 pbp->bio_driver1 != NULL) {
849 cbp = g_clone_bio(pbp);
856 g_raid_subdisk_iostart(pbp->bio_driver1, cbp);
860 if (pbp->bio_pflags & G_RAID_BIO_FLAG_LOCKED) {
876 if (pbp->bio_driver1 != NULL) {
877 ((struct g_raid_subdisk *)pbp->bio_driver1)
884 if (pbp->bio_cmd != BIO_READ) {
885 if (pbp->bio_inbed == 1 || pbp->bio_error != 0)
886 pbp->bio_error = bp->bio_error;
887 if (pbp->bio_cmd == BIO_WRITE && bp->bio_error != 0) {
891 error = pbp->bio_error;
895 if (pbp->bio_children == pbp->bio_inbed) {
896 pbp->bio_completed = pbp->bio_length;
897 g_raid_iodone(pbp, error);