On Mon, Apr 09, 2018 at 05:01:21PM +0800, Guoqing Jiang wrote: > Device could become faulty when clustered array handling > METADATA_UPDATED msg, so we don't need to call read_rdev > for this device. > > Signed-off-by: Guoqing Jiang <gqjiang@xxxxxxxx> applied, thanks! > --- > drivers/md/md.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/md/md.c b/drivers/md/md.c > index 254e44e44668..3315bb46b67c 100644 > --- a/drivers/md/md.c > +++ b/drivers/md/md.c > @@ -9256,8 +9256,10 @@ void md_reload_sb(struct mddev *mddev, int nr) > check_sb_changes(mddev, rdev); > > /* Read all rdev's to update recovery_offset */ > - rdev_for_each_rcu(rdev, mddev) > - read_rdev(mddev, rdev); > + rdev_for_each_rcu(rdev, mddev) { > + if (!test_bit(Faulty, &rdev->flags)) > + read_rdev(mddev, rdev); > + } > } > EXPORT_SYMBOL(md_reload_sb); > > -- > 2.13.6 > > -- > 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 -- 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