aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorAndre Noll <maan@systemlinux.org>2009-06-17 18:48:06 -0400
committerNeilBrown <neilb@suse.de>2009-06-17 18:48:06 -0400
commit8c6ac868b107ed50a46204f6d14e2ad9443ff146 (patch)
treea0690ce92ed1993cc3211448948f3964c389c082 /drivers/md/md.c
parent50ac168a6e0a061bf5346d53aa9e7beb94c97527 (diff)
md: Push down reconstruction log message to personality code.
Currently, the md layer checks in analyze_sbs() if the raid level supports reconstruction (mddev->level >= 1) and if reconstruction is in progress (mddev->recovery_cp != MaxSector). Move that printk into the personality code of those raid levels that care (levels 1, 4, 5, 6, 10). Signed-off-by: Andre Noll <maan@systemlinux.org> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 80f039ec3ac2..90147370bfd7 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2604,15 +2604,6 @@ static void analyze_sbs(mddev_t * mddev)
2604 clear_bit(In_sync, &rdev->flags); 2604 clear_bit(In_sync, &rdev->flags);
2605 } 2605 }
2606 } 2606 }
2607
2608
2609
2610 if (mddev->recovery_cp != MaxSector &&
2611 mddev->level >= 1)
2612 printk(KERN_ERR "md: %s: raid array is not clean"
2613 " -- starting background reconstruction\n",
2614 mdname(mddev));
2615
2616} 2607}
2617 2608
2618static void md_safemode_timeout(unsigned long data); 2609static void md_safemode_timeout(unsigned long data);