On Thu, Jan 23, 2014 at 12:30:58PM +1100, NeilBrown wrote: > On Mon, 20 Jan 2014 20:10:22 +0100 Piergiorgio Sartor > <piergiorgio.sartor@xxxxxxxx> wrote: > > > Hi again, > > > > I'm polluting the mailing list now... Sorry! > > > > I found a couple of really stupid bugs, so this > > re-re-patch should fix them. > > > > Sorry for the noise. > > > > Hi, > I've applied that patch - it looks believable. > > However: > 1/ If you could try putting a description of what the patch does, and why, at > the top, that would help a lot. > See http://www.ozlabs.org/~akpm/stuff/tpp.txt > > 2/ I'm not really happy about: > > @@ -217,26 +231,31 @@ int check_stripes(struct mdinfo *info, i > > block_index_for_slot[diskP] = data_disks; > > blocks[data_disks+1] = stripes[diskQ]; > > block_index_for_slot[diskQ] = data_disks+1; > > - > > +/* Do we really need the code below? */ > > +#if 0 > > if (memcmp(p, stripes[diskP], chunk_size) != 0) { > > printf("P(%d) wrong at %llu\n", diskP, start); > > } > > if (memcmp(q, stripes[diskQ], chunk_size) != 0) { > > printf("Q(%d) wrong at %llu\n", diskQ, start); > > } > > +#endif > > > If you think it should be removed, then delete it completely. It will still > exist in the git history so they is no really loss of code. > If you aren't sure, then don't delete it at all. Ask. Explain your thinking > and seek opinions. > In either case it should be in a separate patch. > I've left the "#if 0" etc for now but if you could push through to a > resolution and send a patch I would appreciate it. Hi Neil, thanks for your review and comments. I'll send a patch (separate email) removing the code. bye, > > Thanks, > NeilBrown -- piergiorgio -- 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