bio_endio(bio, bio->bi_size, test_bit(R1BIO_Uptodate, &r1_bio->state) ? 0 : -EIO); 
/* if nobody has done the final endio yet, do it now */ if (!test_and_set_bit(R1BIO_Returned, &r1_bio->state)) { PRINTK(KERN_DEBUG "raid1: sync end %s on sectors %llu-%llu\n", (bio_data_dir(bio) == WRITE) ? "write" : "read", (unsigned long long) bio->bi_sector, (unsigned long long) bio->bi_sector + (bio->bi_size >> 9) - 1);  bio_endio(bio, bio->bi_size, test_bit(R1BIO_Uptodate, &r1_bio->state) ? 0 : -EIO); } 
static void raid_end_bio_io(r1bio_t *r1_bio){	struct bio *bio = r1_bio->master_bio;	bio_endio(bio, bio->bi_size,		test_bit(R1BIO_Uptodate, &r1_bio->state) ? 0 : -EIO);	free_r1bio(r1_bio);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/4b6d287f627b5fb6a49f78f9e81649ff98c62bb7/raid1.c/buggy/drivers/md/raid1.c