drbd: attach on connected diskless peer must not shrink a consistent device
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 20 Dec 2018 16:23:34 +0000 (17:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Dec 2018 16:51:30 +0000 (09:51 -0700)
commitad6e8979020628137478034dc5dce46d9dbd75b9
treefcab8bbfcbb4b12a14bd341e5ec00350761bfc8d
parent4ef2a4f43f5e52c6ff50a53cb49cf468bacf8cc2
drbd: attach on connected diskless peer must not shrink a consistent device

If we would reject a new handshake, if the peer had attached first,
and then connected, we should force disconnect if the peer first connects,
and only then attaches.

Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_receiver.c