aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 334ff7a07283..53a0f2ce76c8 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -1904,10 +1904,17 @@ static int run(mddev_t *mddev)
1904 1904
1905 if (mddev->degraded == 1 && 1905 if (mddev->degraded == 1 &&
1906 mddev->recovery_cp != MaxSector) { 1906 mddev->recovery_cp != MaxSector) {
1907 printk(KERN_ERR 1907 if (mddev->ok_start_degraded)
1908 "raid5: cannot start dirty degraded array for %s\n", 1908 printk(KERN_WARNING
1909 mdname(mddev)); 1909 "raid5: starting dirty degraded array: %s"
1910 goto abort; 1910 "- data corruption possible.\n",
1911 mdname(mddev));
1912 else {
1913 printk(KERN_ERR
1914 "raid5: cannot start dirty degraded array for %s\n",
1915 mdname(mddev));
1916 goto abort;
1917 }
1911 } 1918 }
1912 1919
1913 { 1920 {