On Mon, Mar 21, 2016 at 07:18:32PM +0800, Wei Fang wrote: > If first_bad == this_sector when we get the WriteMostly disk > in read_balance(), valid disk will be returned with zero > max_sectors. It'll lead to a dead loop in make_request(), and > OOM will happen because of endless allocation of struct bio. > > Since we can't get data from this disk in this case, so > continue for another disk. Good catch, applied. Thanks, Shaohua -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html