HDFS-7217. Better batching of IBRs. Contributed by Kihwal Lee.