aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_req.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2012-04-30 06:53:52 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-05-09 11:20:59 -0400
commitf6d0a8dbfdce4b4f28fcb0f689c373874646f87c (patch)
tree3a648c130260021d4f8f214f7c228b2deff3a536 /drivers/block/drbd/drbd_req.c
parent9476f39d66041ca8c66546671765b4047bffa895 (diff)
drbd: Restore the request restart logic
It got lost with the commit 5a7bbad27a410350e64a2d7f5ec18fc73836c14f "block: remove support for bio remapping from ->make_request" Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_req.c')
-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