Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305959
b: refs/heads/master
c: 30b6764
h: refs/heads/master
i:
  305957: df55e76
  305955: 9bf5775
  305951: fb09035
v: v3
  • Loading branch information
NeilBrown committed May 22, 2012
1 parent 4376c55 commit bc15ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: bb63a7019df91933de6854a87ddc5488b49edb85
refs/heads/master: 30b67645faadcdc32072f999796b99bd0a20f2d5
6 changes: 3 additions & 3 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -5559,9 +5559,6 @@ static int check_reshape(struct mddev *mddev)
mddev->new_layout == mddev->layout &&
mddev->new_chunk_sectors == mddev->chunk_sectors)
return 0; /* nothing to do */
if (mddev->bitmap)
/* Cannot grow a bitmap yet */
return -EBUSY;
if (has_failed(conf))
return -EINVAL;
if (mddev->delta_disks < 0) {
Expand Down Expand Up @@ -5596,6 +5593,9 @@ static int raid5_start_reshape(struct mddev *mddev)
if (!check_stripe_cache(mddev))
return -ENOSPC;

if (has_failed(conf))
return -EINVAL;

rdev_for_each(rdev, mddev) {
if (!test_bit(In_sync, &rdev->flags)
&& !test_bit(Faulty, &rdev->flags))
Expand Down

0 comments on commit bc15ff0

Please sign in to comment.