Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213120
b: refs/heads/master
c: d207450
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Reisner committed Oct 14, 2010
1 parent d7de0e6 commit 402cced
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 778f271dfe7a7173c0bae2d6cde8d9bd1533e668
refs/heads/master: d207450cf2731c6a2afa8c78fb31c7206cd35eba
4 changes: 3 additions & 1 deletion trunk/drivers/block/drbd/drbd_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ int w_make_resync_request(struct drbd_conf *mdev,
sector_t sector;
const sector_t capacity = drbd_get_capacity(mdev->this_bdev);
int max_segment_size;
int number, i, size, pe, mx;
int number, i, rollback_i, size, pe, mx;
int align, queued, sndbuf;

if (unlikely(cancel))
Expand Down Expand Up @@ -613,6 +613,7 @@ int w_make_resync_request(struct drbd_conf *mdev,
* be prepared for all stripe sizes of software RAIDs.
*/
align = 1;
rollback_i = i;
for (;;) {
if (size + BM_BLOCK_SIZE > max_segment_size)
break;
Expand Down Expand Up @@ -654,6 +655,7 @@ int w_make_resync_request(struct drbd_conf *mdev,
case 2: /* Allocation failed */
drbd_rs_complete_io(mdev, sector);
mdev->bm_resync_fo = BM_SECT_TO_BIT(sector);
i = rollback_i;
goto requeue;
/* case 1: everything ok */
}
Expand Down

0 comments on commit 402cced

Please sign in to comment.