summaryrefslogtreecommitdiffstats
path: root/include/linux/drbd.h
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-05-20 16:39:13 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-05-24 10:08:58 +0200
commit99432fcc528d7a5ac8494a4c07ad4726670c96e2 (patch)
tree0b86df2b3e86af1eab14b987e81b7f4a5f88c090 /include/linux/drbd.h
parent21423fa79119a80e335de0c82ec29f67ed59f1bc (diff)
downloadlinux-99432fcc528d7a5ac8494a4c07ad4726670c96e2.tar.gz
linux-99432fcc528d7a5ac8494a4c07ad4726670c96e2.tar.bz2
linux-99432fcc528d7a5ac8494a4c07ad4726670c96e2.zip
drbd: Take a more conservative approach when deciding max_bio_size
The old (optimistic) implementation could shrink the bio size on an primary device. Shrinking the bio size on a primary device is bad. Since there we might get BIOs with the old (bigger) size shortly after we published the new size. The new implementation is more conservative, and eventually increases the max_bio_size on a primary device (which is valid). It does so, when it knows the local limit AND the remote limit. We cache the last seen max_bio_size of the peer in the meta data, and rely on that, to make the operation of single nodes more efficient. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/drbd.h')
0 files changed, 0 insertions, 0 deletions