On Fri, 22 Jul 2011 18:29:16 +0900 Namhyung Kim <namhyung@xxxxxxxxx> wrote: > NeilBrown <neilb@xxxxxxx> writes: > > > The RAID6 version of this code is usable for RAID5 providing: > > - we test "conf->max_degraded" rather than "2" as appropriate > > - we make sure s->failed_num[1] is meaningful (and not '-1') > > when s->failed > 1 > > > > The 'return 1' must become 'goto finish' in the new location. > > > > Signed-off-by: NeilBrown <neilb@xxxxxxx> > > Reviewed-by: Namhyung Kim <namhyung@xxxxxxxxx> > > and nitpick below. > > > > + pr_debug("locked=%d uptodate=%d to_read=%d" > > + " to_write=%d failed=%d failed_num=%d,%d\n", > > + s.locked, s.uptodate, s.to_read, s.to_write, s.failed, > > + s.failed_num[0], s.failed_num[1]); > > + /* check if the array has lost >2 devices and, if so, some requests > > + * might need to be failed > /* check if the array has lost more than max_degraded devices and, > if so, some requests might need to be failed > > Thanks. > > OK, I made that change - thanks. NeilBrown -- 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