From e770288c4a820e86d277314d1c3901da1ce90b19 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 20 Jan 2004 03:12:35 -0800 Subject: [PATCH] [PATCH] md: Don't do_md_stop and array when do_md_run fails. From: NeilBrown Current code calls do_md_stop to clean up if do_md_run fails, but this is a/ not needed as do_md_run cleans up itself b/ bad as it could try to clean up after an -EBUSY error !!! --- drivers/md/md.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index b278d1db753d7..ba4384f543b4f 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2571,19 +2571,8 @@ static int md_ioctl(struct inode *inode, struct file *file, goto done_unlock; case RUN_ARRAY: - { err = do_md_run (mddev); - /* - * we have to clean up the mess if - * the array cannot be run for some - * reason ... - * ->pers will not be set, to superblock will - * not be updated. - */ - if (err) - do_md_stop (mddev, 0); goto done_unlock; - } default: if (_IOC_TYPE(cmd) == MD_MAJOR) -- 2.53.0