add while loop in raid1_sendd

two commits: one is about while loop in raid1_sendd, and the other one is about set value for bmp->used