Re: [PATCH 1/2] md/raid5: avoid duplicate code

2015-05-07 Thread Yuanhan Liu
On Fri, May 08, 2015 at 03:28:00PM +1000, NeilBrown wrote: > On Wed, 6 May 2015 17:45:49 +0800 Yuanhan Liu > wrote: > > > Move the code that put one idle sh(hot in cache, but happens to be > > zero referenced) back to active stage to __find_stripe(). Because > > that's what need to do every time

Re: [PATCH 1/2] md/raid5: avoid duplicate code

2015-05-07 Thread NeilBrown
On Wed, 6 May 2015 17:45:49 +0800 Yuanhan Liu wrote: > Move the code that put one idle sh(hot in cache, but happens to be > zero referenced) back to active stage to __find_stripe(). Because > that's what need to do every time you invoke __find_stripe(). > > Moving it there avoids duplicate code