]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ceb975b07765539db9a0e9016de74618c74bdf2
treefcab8bbfcbb4b12a14bd341e5ec00350761bfc8d
parent028c5022e592ecff844d023c6866916987171671
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