aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-08-23 09:18:33 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-10-14 12:38:25 -0400
commitd53733893dc43f4ebb5be510863c5debf0f8990b (patch)
treedbc9bb129b6c4774747be8b1d68dee6d18052637 /drivers/block/drbd/drbd_main.c
parent02918be2273a6b086292e0d85b740336eda46e36 (diff)
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_main.c')
-rw-r--r--drivers/block/drbd/drbd_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index f3f4ea9c5eb9..71c4c261573e 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -2447,7 +2447,7 @@ int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req)
2447 dgs = (mdev->agreed_pro_version >= 87 && mdev->integrity_w_tfm) ? 2447 dgs = (mdev->agreed_pro_version >= 87 && mdev->integrity_w_tfm) ?
2448 crypto_hash_digestsize(mdev->integrity_w_tfm) : 0; 2448 crypto_hash_digestsize(mdev->integrity_w_tfm) : 0;
2449 2449
2450 if (req->size <= (1 << 15)) { 2450 if (req->size <= DRBD_MAX_SIZE_H80_PACKET) {
2451 p.head.h80.magic = BE_DRBD_MAGIC; 2451 p.head.h80.magic = BE_DRBD_MAGIC;
2452 p.head.h80.command = cpu_to_be16(P_DATA); 2452 p.head.h80.command = cpu_to_be16(P_DATA);
2453 p.head.h80.length = 2453 p.head.h80.length =
@@ -2518,7 +2518,7 @@ int drbd_send_block(struct drbd_conf *mdev, enum drbd_packets cmd,
2518 dgs = (mdev->agreed_pro_version >= 87 && mdev->integrity_w_tfm) ? 2518 dgs = (mdev->agreed_pro_version >= 87 && mdev->integrity_w_tfm) ?
2519 crypto_hash_digestsize(mdev->integrity_w_tfm) : 0; 2519 crypto_hash_digestsize(mdev->integrity_w_tfm) : 0;
2520 2520
2521 if (e->size <= (1 << 15)) { 2521 if (e->size <= DRBD_MAX_SIZE_H80_PACKET) {
2522 p.head.h80.magic = BE_DRBD_MAGIC; 2522 p.head.h80.magic = BE_DRBD_MAGIC;
2523 p.head.h80.command = cpu_to_be16(cmd); 2523 p.head.h80.command = cpu_to_be16(cmd);
2524 p.head.h80.length = 2524 p.head.h80.length =