Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208383
b: refs/heads/master
c: 147e0b6
h: refs/heads/master
i:
  208381: b7983bb
  208379: f3a9251
  208375: c373f9f
  208367: 2b7e3a8
  208351: 847c1bf
  208319: ed6f948
  208255: 5a6b796
  208127: f2c2be7
  207871: e428368
v: v3
  • Loading branch information
Dan Williams authored and NeilBrown committed Aug 8, 2010
1 parent f89f064 commit 1622465
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 51e9ac77035a3dfcb6fc0a88a0d80b6f99b5edb1
refs/heads/master: 147e0b6a639ac581ca3bf627bedc3f4a6d3eca66
6 changes: 4 additions & 2 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -4765,7 +4765,7 @@ static int md_set_readonly(mddev_t *mddev, int is_open)
*/
static int do_md_stop(mddev_t * mddev, int mode, int is_open)
{
int err = 0;
int err = 0, revalidate = 0;
struct gendisk *disk = mddev->gendisk;
mdk_rdev_t *rdev;

Expand Down Expand Up @@ -4795,14 +4795,16 @@ static int do_md_stop(mddev_t * mddev, int mode, int is_open)
}

set_capacity(disk, 0);
revalidate_disk(disk);
revalidate = 1;

if (mddev->ro)
mddev->ro = 0;

err = 0;
}
mutex_unlock(&mddev->open_mutex);
if (revalidate)
revalidate_disk(disk);
if (err)
return err;
/*
Expand Down

0 comments on commit 1622465

Please sign in to comment.