Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196863
b: refs/heads/master
c: bb3d000
h: refs/heads/master
i:
  196861: 896548e
  196859: c989431
  196855: efc168e
  196847: a3134eb
  196831: 2bdd173
  196799: 7ab7562
  196735: da5fbed
  196607: 01bac5e
v: v3
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed May 18, 2010
1 parent 6bffc93 commit 85dcddb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 45bb912bd5ea4d2b3a270a93cbdf767a0e2df6f5
refs/heads/master: bb3d000cb99aa0924b78c1ae5f5943484527868a
13 changes: 6 additions & 7 deletions trunk/drivers/block/drbd/drbd_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ int w_make_resync_request(struct drbd_conf *mdev,
unsigned long bit;
sector_t sector;
const sector_t capacity = drbd_get_capacity(mdev->this_bdev);
int max_segment_size = queue_max_segment_size(mdev->rq_queue);
int max_segment_size;
int number, i, size, pe, mx;
int align, queued, sndbuf;

Expand All @@ -488,6 +488,11 @@ int w_make_resync_request(struct drbd_conf *mdev,
return 1;
}

/* starting with drbd 8.3.8, we can handle multi-bio EEs,
* if it should be necessary */
max_segment_size = mdev->agreed_pro_version < 94 ?
queue_max_segment_size(mdev->rq_queue) : DRBD_MAX_SEGMENT_SIZE;

mdev->c_sync_rate = calc_resync_rate(mdev);
number = SLEEP_TIME * mdev->c_sync_rate / ((BM_BLOCK_SIZE / 1024) * HZ);
pe = atomic_read(&mdev->rs_pending_cnt);
Expand Down Expand Up @@ -552,12 +557,6 @@ int w_make_resync_request(struct drbd_conf *mdev,
*
* Additionally always align bigger requests, in order to
* be prepared for all stripe sizes of software RAIDs.
*
* we _do_ care about the agreed-upon q->max_segment_size
* here, as splitting up the requests on the other side is more
* difficult. the consequence is, that on lvm and md and other
* "indirect" devices, this is dead code, since
* q->max_segment_size will be PAGE_SIZE.
*/
align = 1;
for (;;) {
Expand Down

0 comments on commit 85dcddb

Please sign in to comment.