Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
drbd
bsc1207127-01_drbd-Pause-sync-souce-when-we-dec...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc1207127-01_drbd-Pause-sync-souce-when-we-decide-to-pause-a-sync.patch of Package drbd
From 7f9a41d008ea17ac75f8f927a2a59110b02513d1 Mon Sep 17 00:00:00 2001 From: Philipp Reisner <philipp.reisner@linbit.com> Date: Wed, 16 Jan 2019 16:08:02 +0100 Subject: [PATCH] drbd: Pause sync souce when we decide to pause a sync target These lines where simply missing. When we set the resync-suspended-by- other-connection flag, and a resync is already ongoing we have to apply it to the already ongoing resync as well. --- drbd/drbd_state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drbd/drbd_state.c b/drbd/drbd_state.c index 7e05441e60b4..8af3520c3b02 100644 --- a/drbd/drbd_state.c +++ b/drbd/drbd_state.c @@ -1054,6 +1054,9 @@ static void set_resync_susp_other_c(struct drbd_peer_device *peer_device, bool v if (start && p->disk_state[NEW] >= D_INCONSISTENT && r == L_ESTABLISHED) p->repl_state[NEW] = L_PAUSED_SYNC_T; + + if (r == L_SYNC_SOURCE) + p->repl_state[NEW] = L_PAUSED_SYNC_S; } } else { for_each_peer_device(p, device) { -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor