Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298546
b: refs/heads/master
c: 0366ef8
h: refs/heads/master
v: v3
  • Loading branch information
majianpeng authored and NeilBrown committed Apr 1, 2012
1 parent e5c33ed commit 8ca6a24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 98d5561bfbc3c7a53d6abc1812a2bd5344d36fa3
refs/heads/master: 0366ef847581d692e197b88825867ca9ee00e358
9 changes: 8 additions & 1 deletion trunk/drivers/md/raid0.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks
return array_sectors;
}

static int raid0_stop(struct mddev *mddev);

static int raid0_run(struct mddev *mddev)
{
struct r0conf *conf;
Expand Down Expand Up @@ -454,7 +456,12 @@ static int raid0_run(struct mddev *mddev)

blk_queue_merge_bvec(mddev->queue, raid0_mergeable_bvec);
dump_zones(mddev);
return md_integrity_register(mddev);

ret = md_integrity_register(mddev);
if (ret)
raid0_stop(mddev);

return ret;
}

static int raid0_stop(struct mddev *mddev)
Expand Down

0 comments on commit 8ca6a24

Please sign in to comment.