Lines Matching refs:acting
450 ceph_osds_init(&t->acting); in target_init()
470 ceph_osds_copy(&dest->acting, &src->acting); in target_copy()
1560 static int pick_random_replica(const struct ceph_osds *acting) in pick_random_replica() argument
1562 int i = get_random_u32_below(acting->size); in pick_random_replica()
1565 acting->osds[i], acting->primary); in pick_random_replica()
1575 const struct ceph_osds *acting) in pick_closest_replica() argument
1583 acting->osds[i], in pick_closest_replica()
1592 } while (++i < acting->size); in pick_closest_replica()
1595 acting->osds[best_i], best_locality, acting->primary); in pick_closest_replica()
1611 struct ceph_osds up, acting; in calc_target() local
1661 ceph_pg_to_up_acting_osds(osdc->osdmap, pi, &pgid, &up, &acting); in calc_target()
1663 ceph_is_new_interval(&t->acting, in calc_target()
1664 &acting, in calc_target()
1685 ceph_osds_changed(&t->acting, &acting, in calc_target()
1693 ceph_osds_copy(&t->acting, &acting); in calc_target()
1705 acting.size > 1) { in calc_target()
1708 WARN_ON(!is_read || acting.osds[0] != acting.primary); in calc_target()
1710 pos = pick_random_replica(&acting); in calc_target()
1712 pos = pick_closest_replica(osdc, &acting); in calc_target()
1714 t->osd = acting.osds[pos]; in calc_target()
1717 t->osd = acting.primary; in calc_target()