Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346156
b: refs/heads/master
c: 69b6a3b
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Reisner committed Nov 8, 2012
1 parent 0de6036 commit e4972ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 7da358625c056b631b0abf2fcf50dad5bcbc22d9
refs/heads/master: 69b6a3b159927d45092f64e07f40d5ecf93e11d8
11 changes: 7 additions & 4 deletions trunk/drivers/block/drbd/drbd_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,8 @@ int __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long s
}

if (drbd_suspended(mdev)) {
/* If we got suspended, use the retry mechanism of
generic_make_request() to restart processing of this
/* If we got suspended, use the retry mechanism in
drbd_make_request() to restart processing of this
bio. In the next call to drbd_make_request
we sleep in inc_ap_bio() */
ret = 1;
Expand Down Expand Up @@ -1110,8 +1110,11 @@ int drbd_make_request(struct request_queue *q, struct bio *bio)
D_ASSERT(bio->bi_size > 0);
D_ASSERT(IS_ALIGNED(bio->bi_size, 512));

inc_ap_bio(mdev);
return __drbd_make_request(mdev, bio, start_time);
do {
inc_ap_bio(mdev);
} while (__drbd_make_request(mdev, bio, start_time));

return 0;
}

/* This is called by bio_add_page().
Expand Down

0 comments on commit e4972ea

Please sign in to comment.