Lines Matching refs:r1bio
59 static int check_and_add_serial(struct md_rdev *rdev, struct r1bio *r1_bio, in check_and_add_serial()
90 static void wait_for_serialization(struct md_rdev *rdev, struct r1bio *r1_bio) in wait_for_serialization()
148 static inline struct r1bio *get_resync_r1bio(struct bio *bio) in get_resync_r1bio()
155 int size = offsetof(struct r1bio, bios[conf->raid_disks * 2]); in r1bio_pool_alloc()
171 struct r1bio *r1_bio; in r1buf_pool_alloc()
246 struct r1bio *r1bio = __r1_bio; in r1buf_pool_free() local
250 rp = get_resync_pages(r1bio->bios[i]); in r1buf_pool_free()
252 bio_uninit(r1bio->bios[i]); in r1buf_pool_free()
253 kfree(r1bio->bios[i]); in r1buf_pool_free()
259 rbio_pool_free(r1bio, data); in r1buf_pool_free()
262 static void put_all_bios(struct r1conf *conf, struct r1bio *r1_bio) in put_all_bios()
274 static void free_r1bio(struct r1bio *r1_bio) in free_r1bio()
282 static void put_buf(struct r1bio *r1_bio) in put_buf()
299 static void reschedule_retry(struct r1bio *r1_bio) in reschedule_retry()
321 static void call_bio_endio(struct r1bio *r1_bio) in call_bio_endio()
331 static void raid_end_bio_io(struct r1bio *r1_bio) in raid_end_bio_io()
358 static inline void update_head_pos(int disk, struct r1bio *r1_bio) in update_head_pos()
369 static int find_bio_disk(struct r1bio *r1_bio, struct bio *bio) in find_bio_disk()
388 struct r1bio *r1_bio = bio->bi_private; in raid1_end_read_request()
437 static void close_write(struct r1bio *r1_bio) in close_write()
453 static void r1_bio_write_done(struct r1bio *r1_bio) in r1_bio_write_done()
471 struct r1bio *r1_bio = bio->bi_private; in raid1_end_write_request()
612 static int choose_first_rdev(struct r1conf *conf, struct r1bio *r1_bio, in choose_first_rdev()
642 static bool rdev_in_recovery(struct md_rdev *rdev, struct r1bio *r1_bio) in rdev_in_recovery()
648 static int choose_bb_rdev(struct r1conf *conf, struct r1bio *r1_bio, in choose_bb_rdev()
687 static int choose_slow_rdev(struct r1conf *conf, struct r1bio *r1_bio, in choose_slow_rdev()
736 static bool is_sequential(struct r1conf *conf, int disk, struct r1bio *r1_bio) in is_sequential()
761 static bool rdev_readable(struct md_rdev *rdev, struct r1bio *r1_bio) in rdev_readable()
789 static int choose_best_rdev(struct r1conf *conf, struct r1bio *r1_bio) in choose_best_rdev()
885 static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, in read_balance()
1242 static void alloc_behind_master_bio(struct r1bio *r1_bio, in alloc_behind_master_bio()
1314 static void init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio) in init_r1bio()
1323 static inline struct r1bio *
1327 struct r1bio *r1_bio; in alloc_r1bio()
1330 memset(r1_bio, 0, offsetof(struct r1bio, bios[conf->raid_disks * 2])); in alloc_r1bio()
1336 int max_read_sectors, struct r1bio *r1_bio) in raid1_read_request()
1473 static void raid1_start_write_behind(struct mddev *mddev, struct r1bio *r1_bio, in raid1_start_write_behind()
1501 struct r1bio *r1_bio; in raid1_write_request()
2045 struct r1bio *r1_bio = get_resync_r1bio(bio); in end_sync_read()
2061 static void abort_sync_write(struct mddev *mddev, struct r1bio *r1_bio) in abort_sync_write()
2075 static void put_sync_write_buf(struct r1bio *r1_bio) in put_sync_write_buf()
2093 struct r1bio *r1_bio = get_resync_r1bio(bio); in end_sync_write()
2132 static int fix_sync_read_error(struct r1bio *r1_bio) in fix_sync_read_error()
2258 static void process_checks(struct r1bio *r1_bio) in process_checks()
2344 static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio) in sync_request_write()
2406 static void fix_read_error(struct r1conf *conf, struct r1bio *r1_bio) in fix_read_error()
2496 static void narrow_write_error(struct r1bio *r1_bio, int i) in narrow_write_error()
2567 static void handle_sync_write_finished(struct r1conf *conf, struct r1bio *r1_bio) in handle_sync_write_finished()
2587 static void handle_write_finished(struct r1conf *conf, struct r1bio *r1_bio) in handle_write_finished()
2628 static void handle_read_error(struct r1conf *conf, struct r1bio *r1_bio) in handle_read_error()
2674 struct r1bio *r1_bio; in raid1d()
2691 r1_bio = list_first_entry(&tmp, struct r1bio, in raid1d()
2712 r1_bio = list_entry(head->prev, struct r1bio, retry_list); in raid1d()
2752 static struct r1bio *raid1_alloc_init_r1buf(struct r1conf *conf) in raid1_alloc_init_r1buf()
2754 struct r1bio *r1bio = mempool_alloc(&conf->r1buf_pool, GFP_NOIO); in raid1_alloc_init_r1buf() local
2760 bio = r1bio->bios[i]; in raid1_alloc_init_r1buf()
2765 r1bio->master_bio = NULL; in raid1_alloc_init_r1buf()
2766 return r1bio; in raid1_alloc_init_r1buf()
2783 struct r1bio *r1_bio; in raid1_sync_request()
3118 r1bio_size = offsetof(struct r1bio, bios[mddev->raid_disks * 2]); in setup_conf()
3392 new_r1bio_size = offsetof(struct r1bio, bios[raid_disks * 2]); in raid1_reshape()