ring_dist
ring_dist(ring, ring->next_to_clean, ring->next_to_use) - 1;
fetch_num = ring_dist(ring, head, tail);