"John Stoffel" <john@xxxxxxxxxxx> writes: >>>>>> "Tomasz" == Tomasz Majchrzak <tomasz.majchrzak@xxxxxxxxx> writes: > > Tomasz> On Mon, Jul 18, 2016 at 04:55:27PM -0400, Jes Sorensen wrote: >>> "John Stoffel" <john@xxxxxxxxxxx> writes: >>> > Really, you're sleeping 10 seconds without telling the user? That >>> > seems to be a bit obnoxious. Logging something here would be good. >>> >>> Hi, >>> >>> Sorry just back from vacation and just started attacking the mountain of >>> email. >>> >>> I agree with John here, please add some logging message. Also is 10 >>> seconds really needed? It seems an awful lot per iteration. >>> >>> Cheers, >>> Jes > > Tomasz> Well, actually it's 20 iteration 100ms each so up to 2 > Tomasz> seconds. I have never seen it taking more than 3 iterations, > Tomasz> however I don't have a full knowledge how long it can take md > Tomasz> module to release an array. I just added 2 seconds as a > Tomasz> precaution, better wait a bit longer than leave an array in > Tomasz> inconsistent state. Is it fine? > > Then maybe instead of the magic number 100000, you put in a define > which says the expected sleep time, or maybe even just a commment? I > can never keep the usleep number units straight in my head anyway. > :-/ Heh, made the same mistake here - I blame the jetlag and the crazy weather here in NYC :) If you can add a comment explaining it, that will satisfy my concerns. Thanks, Jes -- 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