Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19601
b: refs/heads/master
c: 978f946
h: refs/heads/master
i:
  19599: 126624c
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Feb 2, 2006
1 parent 045421b commit 7a7bc2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: f0ca340cd20b350eab8288974e9a6077900846e8
refs/heads/master: 978f946bb628ef228e13aadf4d4255b8727c4fc3
16 changes: 8 additions & 8 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -2689,14 +2689,6 @@ static int do_md_stop(mddev_t * mddev, int ro)
set_disk_ro(disk, 1);
}

bitmap_destroy(mddev);
if (mddev->bitmap_file) {
atomic_set(&mddev->bitmap_file->f_dentry->d_inode->i_writecount, 1);
fput(mddev->bitmap_file);
mddev->bitmap_file = NULL;
}
mddev->bitmap_offset = 0;

/*
* Free resources if final stop
*/
Expand All @@ -2706,6 +2698,14 @@ static int do_md_stop(mddev_t * mddev, int ro)
struct gendisk *disk;
printk(KERN_INFO "md: %s stopped.\n", mdname(mddev));

bitmap_destroy(mddev);
if (mddev->bitmap_file) {
atomic_set(&mddev->bitmap_file->f_dentry->d_inode->i_writecount, 1);
fput(mddev->bitmap_file);
mddev->bitmap_file = NULL;
}
mddev->bitmap_offset = 0;

ITERATE_RDEV(mddev,rdev,tmp)
if (rdev->raid_disk >= 0) {
char nm[20];
Expand Down

0 comments on commit 7a7bc2a

Please sign in to comment.