drbd: keep max-bio size during detach/attach on disconnected primary
authorLars Ellenberg <lars@linbit.com>
Mon, 28 Apr 2014 16:43:27 +0000 (18:43 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 30 Apr 2014 19:46:55 +0000 (13:46 -0600)
commitfa090e708a72f0ea9cbe067fba28cfb2b8b787af
tree833888d8d49aad936ac5e9e650cf0abee55e7e5c
parent074f4afeb2277bd5ecb9fa7f91eaffa55e262126
drbd: keep max-bio size during detach/attach on disconnected primary

We want to store in persistent meta data what the peer DRBD can handle,
which, due to spreading requests to multiple bios,
may be more than its backing device can handle.

Otherwise, if a disconnected Primary temporarily loses access to its local data
as well, we may accidentally shrink the max-bio setting, portentially causing
already assembled, but not yet processed, application bios to be spuriously
failed due to device limits.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_nl.c