Lines Matching refs:acting
423 ceph_osds_init(&t->acting); in target_init()
443 ceph_osds_copy(&dest->acting, &src->acting); in target_copy()
1480 static int pick_random_replica(const struct ceph_osds *acting) in pick_random_replica() argument
1482 int i = prandom_u32_max(acting->size); in pick_random_replica()
1485 acting->osds[i], acting->primary); in pick_random_replica()
1495 const struct ceph_osds *acting) in pick_closest_replica() argument
1503 acting->osds[i], in pick_closest_replica()
1512 } while (++i < acting->size); in pick_closest_replica()
1515 acting->osds[best_i], best_locality, acting->primary); in pick_closest_replica()
1531 struct ceph_osds up, acting; in calc_target() local
1581 ceph_pg_to_up_acting_osds(osdc->osdmap, pi, &pgid, &up, &acting); in calc_target()
1583 ceph_is_new_interval(&t->acting, in calc_target()
1584 &acting, in calc_target()
1605 ceph_osds_changed(&t->acting, &acting, in calc_target()
1613 ceph_osds_copy(&t->acting, &acting); in calc_target()
1625 acting.size > 1) { in calc_target()
1628 WARN_ON(!is_read || acting.osds[0] != acting.primary); in calc_target()
1630 pos = pick_random_replica(&acting); in calc_target()
1632 pos = pick_closest_replica(osdc, &acting); in calc_target()
1634 t->osd = acting.osds[pos]; in calc_target()
1637 t->osd = acting.primary; in calc_target()