summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_nl.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-08-23 17:18:33 +0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-10-14 20:38:25 +0400
commitd53733893dc43f4ebb5be510863c5debf0f8990b (patch)
treedbc9bb129b6c4774747be8b1d68dee6d18052637 /drivers/block/drbd/drbd_nl.c
parent02918be2273a6b086292e0d85b740336eda46e36 (diff)
downloadlinux-d53733893dc43f4ebb5be510863c5debf0f8990b.tar.xz
drbd: Actually allow BIOs up to 128k (was 32k).
Now we have multiple BIOs per ee, packets with a 32 bit length field, it gets time to use these goodies. 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_nl.c')
-rw-r--r--drivers/block/drbd/drbd_nl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
index 6b35d41706e4..97fb2c2a7a57 100644
--- a/drivers/block/drbd/drbd_nl.c
+++ b/drivers/block/drbd/drbd_nl.c
@@ -1063,7 +1063,9 @@ static int drbd_nl_disk_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp
mdev->read_cnt = 0;
mdev->writ_cnt = 0;
- drbd_setup_queue_param(mdev, DRBD_MAX_SEGMENT_SIZE);
+ drbd_setup_queue_param(mdev, mdev->state.conn == C_CONNECTED &&
+ mdev->agreed_pro_version < 95 ?
+ DRBD_MAX_SIZE_H80_PACKET : DRBD_MAX_SEGMENT_SIZE);
/* If I am currently not R_PRIMARY,
* but meta data primary indicator is set,