summaryrefslogtreecommitdiff
path: root/Documentation/sgi-ioc4.txt
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2018-12-20 17:23:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 09:20:44 +0100
commitde0713a3da9d7a9ed134b18e8170c4041c4c44ac (patch)
treee4707c81a5b02783d08aa4b03b08c7bf99897c36 /Documentation/sgi-ioc4.txt
parente440f9fd4eddd44f790a39090c4747df22efbc0e (diff)
downloadlinux-rt-de0713a3da9d7a9ed134b18e8170c4041c4c44ac.tar.gz
drbd: ignore "all zero" peer volume sizes in handshake
[ Upstream commit 94c43a13b8d6e3e0dd77b3536b5e04a84936b762 ] During handshake, if we are diskless ourselves, we used to accept any size presented by the peer. Which could be zero if that peer was just brought up and connected to us without having a disk attached first, in which case both peers would just "flip" their volume sizes. Now, even a diskless node will ignore "zero" sizes presented by a diskless peer. Also a currently Diskless Primary will refuse to shrink during handshake: it may be frozen, and waiting for a "suitable" local disk or peer to re-appear (on-no-data-accessible suspend-io). If the peer is smaller than what we used to be, it is not suitable. The logic for a diskless node during handshake is now supposed to be: believe the peer, if - I don't have a current size myself - we agree on the size anyways - I do have a current size, am Secondary, and he has the only disk - I do have a current size, am Primary, and he has the only disk, which is larger than my current size Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation/sgi-ioc4.txt')
0 files changed, 0 insertions, 0 deletions