Lines Matching defs:bio_list

95 	WARN_ON(!bio_list_empty(&rbio->bio_list));
326 * merging means we take the bio_list from the victim and
335 bio_list_merge(&dest->bio_list, &victim->bio_list);
340 bio_list_init(&victim->bio_list);
384 * If the bio_list was empty, we also remove
388 if (bio_list_empty(&rbio->bio_list)) {
669 if (bio_list_empty(&cur->bio_list) &&
760 BUG_ON(!bio_list_empty(&rbio->bio_list));
823 * bio_list and calls end_io on them
827 struct bio *cur = bio_list_get(&rbio->bio_list);
843 * At this moment, rbio->bio_list is empty, however since rbio does not
845 * hash list, rbio may be merged with others so that rbio->bio_list
847 * Once unlock_stripe() is done, rbio->bio_list will not be updated any
851 extra = bio_list_get(&rbio->bio_list);
940 bio_list_init(&rbio->bio_list);
1036 struct bio_list *bio_list,
1043 struct bio *last = bio_list->tail;
1102 bio_list_add(bio_list, bio);
1142 bio_list_for_each(bio, &rbio->bio_list)
1176 static inline void bio_list_put(struct bio_list *bio_list)
1180 while ((bio = bio_list_pop(bio_list)))
1227 struct bio_list *bio_list)
1235 ASSERT(bio_list_size(bio_list) == 0);
1248 * bio_list in our rbio) and our P/Q. Ignore everything else.
1269 ret = rbio_add_io_sector(rbio, bio_list, sector, stripe,
1319 ret = rbio_add_io_sector(rbio, bio_list, sector,
1328 bio_list_put(bio_list);
1508 struct bio_list *bio_list)
1512 atomic_set(&rbio->stripes_pending, bio_list_size(bio_list));
1513 while ((bio = bio_list_pop(bio_list))) {
1565 u64 a_sector = ra->bio_list.head->bi_iter.bi_sector;
1566 u64 b_sector = rb->bio_list.head->bi_iter.bi_sector;
1608 /* Add the original bio into rbio->bio_list, and update rbio::dbitmap. */
1622 bio_list_add(&rbio->bio_list, orig_bio);
1916 struct bio_list bio_list = BIO_EMPTY_LIST;
1963 ret = rbio_add_io_sector(rbio, &bio_list, sector, stripe,
1966 bio_list_put(&bio_list);
1971 submit_read_wait_bio_list(rbio, &bio_list);
2134 struct bio_list bio_list = BIO_EMPTY_LIST;
2157 ret = rbio_add_io_sector(rbio, &bio_list, sector,
2160 bio_list_put(&bio_list);
2169 submit_read_wait_bio_list(rbio, &bio_list);
2186 struct bio_list *bio_list)
2190 atomic_set(&rbio->stripes_pending, bio_list_size(bio_list));
2191 while ((bio = bio_list_pop(bio_list))) {
2228 struct bio_list bio_list;
2287 bio_list_init(&bio_list);
2288 ret = rmw_assemble_write_bios(rbio, &bio_list);
2293 ASSERT(bio_list_size(&bio_list));
2294 submit_write_bios(rbio, &bio_list);
2347 bio_list_add(&rbio->bio_list, bio);
2412 struct bio_list bio_list;
2416 bio_list_init(&bio_list);
2511 * higher layers (the bio_list in our rbio) and our p/q. Ignore
2518 ret = rbio_add_io_sector(rbio, &bio_list, sector, rbio->scrubp,
2536 ret = rbio_add_io_sector(rbio, &bio_list, sector,
2544 submit_write_bios(rbio, &bio_list);
2548 bio_list_put(&bio_list);
2645 struct bio_list bio_list = BIO_EMPTY_LIST;
2677 ret = rbio_add_io_sector(rbio, &bio_list, sector, stripe,
2680 bio_list_put(&bio_list);
2685 submit_read_wait_bio_list(rbio, &bio_list);