Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305919
b: refs/heads/master
c: c804cde
h: refs/heads/master
i:
  305917: 4d19f90
  305915: 11ae43b
  305911: ca7f9c9
  305903: 1f02dfd
  305887: a89f2b3
  305855: 9128122
  305791: 3a31328
  305663: 5482f56
v: v3
  • Loading branch information
NeilBrown committed May 20, 2012
1 parent 6cdeace commit e19180d
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 1fdd6fc92f330b81604c9a4f892f713775a9751a
refs/heads/master: c804cdecea418c067ee7359d62139b2b3c8cec39
8 changes: 5 additions & 3 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -4425,7 +4425,8 @@ sync_completed_show(struct mddev *mddev, char *page)
if (!test_bit(MD_RECOVERY_RUNNING, &mddev->recovery))
return sprintf(page, "none\n");

if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery))
if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) ||
test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery))
max_sectors = mddev->resync_max_sectors;
else
max_sectors = mddev->dev_sectors;
Expand Down Expand Up @@ -6803,7 +6804,8 @@ static void status_resync(struct seq_file *seq, struct mddev * mddev)

resync = mddev->curr_resync - atomic_read(&mddev->recovery_active);

if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery))
if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) ||
test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery))
max_sectors = mddev->resync_max_sectors;
else
max_sectors = mddev->dev_sectors;
Expand Down Expand Up @@ -7366,7 +7368,7 @@ void md_do_sync(struct mddev *mddev)
j = mddev->recovery_cp;

} else if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery))
max_sectors = mddev->dev_sectors;
max_sectors = mddev->resync_max_sectors;
else {
/* recovery follows the physical size of devices */
max_sectors = mddev->dev_sectors;
Expand Down

0 comments on commit e19180d

Please sign in to comment.