diff options
| author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2018-12-20 17:23:41 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-20 10:13:11 +0100 |
| commit | eb15351d9c125d6f4e34ffbc327f4f2d7d7de4d2 (patch) | |
| tree | 83980803d765a5f3858dda34fbb5d6aa108b3644 /include/linux/genl_magic_struct.h | |
| parent | 5c857f014b05c3565becd447d94d0d9e7e88f96a (diff) | |
drbd: skip spurious timeout (ping-timeo) when failing promote
[ Upstream commit 9848b6ddd8c92305252f94592c5e278574e7a6ac ]
If you try to promote a Secondary while connected to a Primary
and allow-two-primaries is NOT set, we will wait for "ping-timeout"
to give this node a chance to detect a dead primary,
in case the cluster manager noticed faster than we did.
But if we then are *still* connected to a Primary,
we fail (after an additional timeout of ping-timout).
This change skips the spurious second timeout.
Most people won't notice really,
since "ping-timeout" by default is half a second.
But in some installations, ping-timeout may be 10 or 20 seconds or more,
and spuriously delaying the error return becomes annoying.
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 'include/linux/genl_magic_struct.h')
0 files changed, 0 insertions, 0 deletions
