aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/drbd/drbd_req.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c
index 4a642ce62bae..9c5c84946b05 100644
--- a/drivers/block/drbd/drbd_req.c
+++ b/drivers/block/drbd/drbd_req.c
@@ -871,7 +871,7 @@ allocate_barrier:
871 871
872 if (is_susp(mdev->state)) { 872 if (is_susp(mdev->state)) {
873 /* If we got suspended, use the retry mechanism of 873 /* If we got suspended, use the retry mechanism of
874 generic_make_request() to restart processing of this 874 drbd_make_request() to restart processing of this
875 bio. In the next call to drbd_make_request 875 bio. In the next call to drbd_make_request
876 we sleep in inc_ap_bio() */ 876 we sleep in inc_ap_bio() */
877 ret = 1; 877 ret = 1;
@@ -1102,8 +1102,9 @@ void drbd_make_request(struct request_queue *q, struct bio *bio)
1102 e_enr = (bio->bi_sector+(bio->bi_size>>9)-1) >> HT_SHIFT; 1102 e_enr = (bio->bi_sector+(bio->bi_size>>9)-1) >> HT_SHIFT;
1103 1103
1104 if (likely(s_enr == e_enr)) { 1104 if (likely(s_enr == e_enr)) {
1105 inc_ap_bio(mdev, 1); 1105 do {
1106 drbd_make_request_common(mdev, bio, start_time); 1106 inc_ap_bio(mdev, 1);
1107 } while (drbd_make_request_common(mdev, bio, start_time));
1107 return; 1108 return;
1108 } 1109 }
1109 1110