Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197493
b: refs/heads/master
c: cca9cf9
h: refs/heads/master
i:
  197491: b47e9cb
v: v3
  • Loading branch information
NeilBrown committed May 18, 2010
1 parent 143f4e6 commit 27138e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4bd82d0d03b1485975579f131ccfd0aad6b7d6e
refs/heads/master: cca9cf90c504d98644ace52c474770970729f0eb
7 changes: 3 additions & 4 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -4634,12 +4634,14 @@ static void md_stop_writes(mddev_t *mddev)

static void md_stop(mddev_t *mddev)
{
md_stop_writes(mddev);

mddev->pers->stop(mddev);
if (mddev->pers->sync_request && mddev->to_remove == NULL)
mddev->to_remove = &md_redundancy_group;
module_put(mddev->pers->owner);
mddev->pers = NULL;

clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
}

static int md_set_readonly(mddev_t *mddev, int is_open)
Expand Down Expand Up @@ -4684,8 +4686,6 @@ static int do_md_stop(mddev_t * mddev, int mode, int is_open)
err = -EBUSY;
} else if (mddev->pers) {

md_stop_writes(mddev);

if (mddev->ro)
set_disk_ro(disk, 0);

Expand All @@ -4710,7 +4710,6 @@ static int do_md_stop(mddev_t * mddev, int mode, int is_open)
if (mddev->ro)
mddev->ro = 0;

clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
err = 0;
}
mutex_unlock(&mddev->open_mutex);
Expand Down

0 comments on commit 27138e4

Please sign in to comment.