Lines Matching defs:bio_list

94 	WARN_ON(!bio_list_empty(&rbio->bio_list));
325 * merging means we take the bio_list from the victim and
334 bio_list_merge(&dest->bio_list, &victim->bio_list);
339 bio_list_init(&victim->bio_list);
383 * If the bio_list was empty, we also remove
387 if (bio_list_empty(&rbio->bio_list)) {
668 if (bio_list_empty(&cur->bio_list) &&
759 BUG_ON(!bio_list_empty(&rbio->bio_list));
822 * bio_list and calls end_io on them
826 struct bio *cur = bio_list_get(&rbio->bio_list);
842 * At this moment, rbio->bio_list is empty, however since rbio does not
844 * hash list, rbio may be merged with others so that rbio->bio_list
846 * Once unlock_stripe() is done, rbio->bio_list will not be updated any
850 extra = bio_list_get(&rbio->bio_list);
946 bio_list_init(&rbio->bio_list);
1043 struct bio_list *bio_list,
1050 struct bio *last = bio_list->tail;
1109 bio_list_add(bio_list, bio);
1149 bio_list_for_each(bio, &rbio->bio_list)
1183 static inline void bio_list_put(struct bio_list *bio_list)
1187 while ((bio = bio_list_pop(bio_list)))
1255 struct bio_list *bio_list)
1263 ASSERT(bio_list_size(bio_list) == 0);
1276 * bio_list in our rbio) and our P/Q. Ignore everything else.
1297 ret = rbio_add_io_sector(rbio, bio_list, sector, stripe,
1347 ret = rbio_add_io_sector(rbio, bio_list, sector,
1356 bio_list_put(bio_list);
1536 struct bio_list *bio_list)
1540 atomic_set(&rbio->stripes_pending, bio_list_size(bio_list));
1541 while ((bio = bio_list_pop(bio_list))) {
1592 u64 a_sector = ra->bio_list.head->bi_iter.bi_sector;
1593 u64 b_sector = rb->bio_list.head->bi_iter.bi_sector;
1635 /* Add the original bio into rbio->bio_list, and update rbio::dbitmap. */
1649 bio_list_add(&rbio->bio_list, orig_bio);
1943 struct bio_list bio_list = BIO_EMPTY_LIST;
1990 ret = rbio_add_io_sector(rbio, &bio_list, sector, stripe,
1993 bio_list_put(&bio_list);
1998 submit_read_wait_bio_list(rbio, &bio_list);
2161 struct bio_list bio_list = BIO_EMPTY_LIST;
2184 ret = rbio_add_io_sector(rbio, &bio_list, sector,
2187 bio_list_put(&bio_list);
2196 submit_read_wait_bio_list(rbio, &bio_list);
2213 struct bio_list *bio_list)
2217 atomic_set(&rbio->stripes_pending, bio_list_size(bio_list));
2218 while ((bio = bio_list_pop(bio_list))) {
2255 struct bio_list bio_list;
2314 bio_list_init(&bio_list);
2315 ret = rmw_assemble_write_bios(rbio, &bio_list);
2320 ASSERT(bio_list_size(&bio_list));
2321 submit_write_bios(rbio, &bio_list);
2374 bio_list_add(&rbio->bio_list, bio);
2439 struct bio_list bio_list;
2443 bio_list_init(&bio_list);
2539 * higher layers (the bio_list in our rbio) and our p/q. Ignore
2546 ret = rbio_add_io_sector(rbio, &bio_list, sector, rbio->scrubp,
2564 ret = rbio_add_io_sector(rbio, &bio_list, sector,
2572 submit_write_bios(rbio, &bio_list);
2576 bio_list_put(&bio_list);
2673 struct bio_list bio_list = BIO_EMPTY_LIST;
2705 ret = rbio_add_io_sector(rbio, &bio_list, sector, stripe,
2708 bio_list_put(&bio_list);
2713 submit_read_wait_bio_list(rbio, &bio_list);