summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2011-07-27 03:00:36 +0200
committerNeilBrown <neilb@suse.de>2011-07-27 03:00:36 +0200
commita478a069b6adf186373a6648c54fc5f1d3c2f8eb (patch)
treeac10604e2b0e3525c25c6fb23128ab1fc858a550 /drivers/md/md.c
parentmd: introduce link/unlink_rdev() helpers (diff)
downloadlinux-a478a069b6adf186373a6648c54fc5f1d3c2f8eb.tar.xz
linux-a478a069b6adf186373a6648c54fc5f1d3c2f8eb.zip
md: remove ro check in md_check_recovery()
Commit c89a8eee6154 ("Allow faulty devices to be removed from a readonly array.") added some work on ro array in the function, but it couldn't be done since we didn't allow the ro array to be handled from the beginning. Fix it. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 0398dc42a956..77bd8d8708e4 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -7163,9 +7163,6 @@ void md_check_recovery(mddev_t *mddev)
if (mddev->bitmap)
bitmap_daemon_work(mddev);
- if (mddev->ro)
- return;
-
if (signal_pending(current)) {
if (mddev->pers->sync_request && !mddev->external) {
printk(KERN_INFO "md: %s in immediate safe mode\n",