Lines Matching refs:bio_list
95 WARN_ON(!bio_list_empty(&rbio->bio_list)); in free_raid_bio()
335 bio_list_merge(&dest->bio_list, &victim->bio_list); in merge_rbio()
340 bio_list_init(&victim->bio_list); in merge_rbio()
388 if (bio_list_empty(&rbio->bio_list)) { in __remove_rbio_from_cache()
669 if (bio_list_empty(&cur->bio_list) && in lock_stripe_add()
760 BUG_ON(!bio_list_empty(&rbio->bio_list)); in unlock_stripe()
827 struct bio *cur = bio_list_get(&rbio->bio_list); in rbio_orig_end_io()
851 extra = bio_list_get(&rbio->bio_list); in rbio_orig_end_io()
940 bio_list_init(&rbio->bio_list); in alloc_rbio()
1036 struct bio_list *bio_list, in rbio_add_io_sector() argument
1043 struct bio *last = bio_list->tail; in rbio_add_io_sector()
1102 bio_list_add(bio_list, bio); in rbio_add_io_sector()
1142 bio_list_for_each(bio, &rbio->bio_list) in index_rbio_pages()
1176 static inline void bio_list_put(struct bio_list *bio_list) in bio_list_put() argument
1180 while ((bio = bio_list_pop(bio_list))) in bio_list_put()
1227 struct bio_list *bio_list) in rmw_assemble_write_bios() argument
1235 ASSERT(bio_list_size(bio_list) == 0); in rmw_assemble_write_bios()
1269 ret = rbio_add_io_sector(rbio, bio_list, sector, stripe, in rmw_assemble_write_bios()
1319 ret = rbio_add_io_sector(rbio, bio_list, sector, in rmw_assemble_write_bios()
1328 bio_list_put(bio_list); in rmw_assemble_write_bios()
1508 struct bio_list *bio_list) in submit_read_wait_bio_list() argument
1512 atomic_set(&rbio->stripes_pending, bio_list_size(bio_list)); in submit_read_wait_bio_list()
1513 while ((bio = bio_list_pop(bio_list))) { in submit_read_wait_bio_list()
1565 u64 a_sector = ra->bio_list.head->bi_iter.bi_sector; in plug_cmp()
1566 u64 b_sector = rb->bio_list.head->bi_iter.bi_sector; in plug_cmp()
1622 bio_list_add(&rbio->bio_list, orig_bio); in rbio_add_bio()
1916 struct bio_list bio_list = BIO_EMPTY_LIST; in recover_rbio() local
1963 ret = rbio_add_io_sector(rbio, &bio_list, sector, stripe, in recover_rbio()
1966 bio_list_put(&bio_list); in recover_rbio()
1971 submit_read_wait_bio_list(rbio, &bio_list); in recover_rbio()
2134 struct bio_list bio_list = BIO_EMPTY_LIST; in rmw_read_wait_recover() local
2157 ret = rbio_add_io_sector(rbio, &bio_list, sector, in rmw_read_wait_recover()
2160 bio_list_put(&bio_list); in rmw_read_wait_recover()
2169 submit_read_wait_bio_list(rbio, &bio_list); in rmw_read_wait_recover()
2186 struct bio_list *bio_list) in submit_write_bios() argument
2190 atomic_set(&rbio->stripes_pending, bio_list_size(bio_list)); in submit_write_bios()
2191 while ((bio = bio_list_pop(bio_list))) { in submit_write_bios()
2228 struct bio_list bio_list; in rmw_rbio() local
2287 bio_list_init(&bio_list); in rmw_rbio()
2288 ret = rmw_assemble_write_bios(rbio, &bio_list); in rmw_rbio()
2293 ASSERT(bio_list_size(&bio_list)); in rmw_rbio()
2294 submit_write_bios(rbio, &bio_list); in rmw_rbio()
2347 bio_list_add(&rbio->bio_list, bio); in raid56_parity_alloc_scrub_rbio()
2412 struct bio_list bio_list; in finish_parity_scrub() local
2416 bio_list_init(&bio_list); in finish_parity_scrub()
2518 ret = rbio_add_io_sector(rbio, &bio_list, sector, rbio->scrubp, in finish_parity_scrub()
2536 ret = rbio_add_io_sector(rbio, &bio_list, sector, in finish_parity_scrub()
2544 submit_write_bios(rbio, &bio_list); in finish_parity_scrub()
2548 bio_list_put(&bio_list); in finish_parity_scrub()
2645 struct bio_list bio_list = BIO_EMPTY_LIST; in scrub_assemble_read_bios() local
2677 ret = rbio_add_io_sector(rbio, &bio_list, sector, stripe, in scrub_assemble_read_bios()
2680 bio_list_put(&bio_list); in scrub_assemble_read_bios()
2685 submit_read_wait_bio_list(rbio, &bio_list); in scrub_assemble_read_bios()