Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43995
b: refs/heads/master
c: 0d4ca60
h: refs/heads/master
i:
  43993: a2fe404
  43991: 291ca6c
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Dec 10, 2006
1 parent 14fccdc commit 8489182
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: a3d899839064b6924c3d8a6404dae14c79f657fd
refs/heads/master: 0d4ca600fcf5c5f3a0c195ccf37e989b83451dd4
10 changes: 5 additions & 5 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -3314,6 +3314,10 @@ static int do_md_stop(mddev_t * mddev, int mode)

module_put(mddev->pers->owner);
mddev->pers = NULL;

set_capacity(disk, 0);
mddev->changed = 1;

if (mddev->ro)
mddev->ro = 0;
}
Expand All @@ -3333,7 +3337,7 @@ static int do_md_stop(mddev_t * mddev, int mode)
if (mode == 0) {
mdk_rdev_t *rdev;
struct list_head *tmp;
struct gendisk *disk;

printk(KERN_INFO "md: %s stopped.\n", mdname(mddev));

bitmap_destroy(mddev);
Expand All @@ -3358,10 +3362,6 @@ static int do_md_stop(mddev_t * mddev, int mode)
mddev->raid_disks = 0;
mddev->recovery_cp = 0;

disk = mddev->gendisk;
if (disk)
set_capacity(disk, 0);
mddev->changed = 1;
} else if (mddev->pers)
printk(KERN_INFO "md: %s switched to read-only mode.\n",
mdname(mddev));
Expand Down

0 comments on commit 8489182

Please sign in to comment.