On Sat, Feb 03, 2018 at 09:19:30AM +1100, Neil Brown wrote: > Hi Shaohua, > you asked me to resend this (second) patch with improved > comments back in November, and it completely slipped my mind - sorry. > I decided the comments would fit better in a separate patch, > so following are a patch to add comments, and then the bugfix > patch marked for -stable. > > You asked: > > This will bypass hotadd too, is it what we want? > > No, it doesn't. In the only cases where the patch makes a > difference, a non-NULL rdev will have been passed as "this", > so hot-add will be skipped anyway. > > This patch includes a bugfix as reported by yuyufen Applied, thanks! > Thanks, > NeilBrown > > --- > > NeilBrown (2): > md: document lifetime of internal rdev pointer. > md: only allow remove_and_add_spares when no sync_thread running. > > > drivers/md/md.c | 4 ++++ > drivers/md/raid1.h | 12 ++++++++++++ > drivers/md/raid10.h | 13 +++++++++++++ > drivers/md/raid5.c | 4 ++-- > drivers/md/raid5.h | 12 ++++++++++++ > 5 files changed, 43 insertions(+), 2 deletions(-) > > -- > Signature > -- 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