Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269276
b: refs/heads/master
c: d890fa2
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed Oct 26, 2011
1 parent ccd175c commit c209946
Show file tree
Hide file tree
Showing 4 changed files with 7 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: 355840e7a7e56bb2834fd3b0da64da5465f8aeaa
refs/heads/master: d890fa2b0586b6177b119643ff66932127d58afa
4 changes: 3 additions & 1 deletion trunk/drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,8 @@ static int fix_sync_read_error(struct r1bio *r1_bio)
abort = 1;
}
if (abort) {
mddev->recovery_disabled = 1;
conf->recovery_disabled =
mddev->recovery_disabled;
set_bit(MD_RECOVERY_INTR, &mddev->recovery);
md_done_sync(mddev, r1_bio->sectors, 0);
put_buf(r1_bio);
Expand Down Expand Up @@ -2436,6 +2437,7 @@ static struct r1conf *setup_conf(struct mddev *mddev)

bio_list_init(&conf->pending_bio_list);
conf->pending_count = 0;
conf->recovery_disabled = mddev->recovery_disabled - 1;

conf->last_used = -1;
for (i = 0; i < conf->raid_disks; i++) {
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,7 @@ static int raid10_add_disk(struct mddev *mddev, struct md_rdev *rdev)
}

p->head_position = 0;
p->recovery_disabled = mddev->recovery_disabled - 1;
rdev->raid_disk = mirror;
err = 0;
if (rdev->saved_raid_disk != mirror)
Expand Down Expand Up @@ -2931,6 +2932,7 @@ static int run(struct mddev *mddev)
if (disk->rdev)
conf->fullsync = 1;
}
disk->recovery_disabled = mddev->recovery_disabled - 1;
}

if (mddev->recovery_cp != MaxSector)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -4591,6 +4591,7 @@ static struct r5conf *setup_conf(struct mddev *mddev)
atomic_set(&conf->preread_active_stripes, 0);
atomic_set(&conf->active_aligned_reads, 0);
conf->bypass_threshold = BYPASS_THRESHOLD;
conf->recovery_disabled = mddev->recovery_disabled - 1;

conf->raid_disks = mddev->raid_disks;
if (mddev->reshape_position == MaxSector)
Expand Down

0 comments on commit c209946

Please sign in to comment.