drbd: properly use max_hw_sectors to limit the our bio size
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 11 Nov 2010 14:19:07 +0000 (15:19 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:19:11 +0000 (11:19 +0100)
commit1816a2b47afae838e53a177d5d166cc7be97d6b5
tree70d4e3c8aca3ab26af6ebe84ed23b0ba4d4d67e9
parent3129b1b9aed15bbebde1b2a5719434273feb295d
drbd: properly use max_hw_sectors to limit the our bio size

To ease tracking of bios in some hash tables, we want it to
not cross certain boundaries (128k, used to be 32k).
We limit the maximum bio size using queue parameters.

Historically some defines and variables we use there have been named
max_segment_size, which was misguided. Rename them to max_bio_size,
and use [blk_]queue_max_hw_sectors where appropriate.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_actlog.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_req.c
drivers/block/drbd/drbd_worker.c