Modified ip_distance_cost so that it can accept a list of volume ids from scheduler hint.