mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +00:00
drbd: Disabled the crashed_primary detection for re-attach of last data while IO is frozen
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
47ff2d0a8e
commit
894c6a9461
@ -1033,7 +1033,9 @@ static int drbd_nl_disk_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp
|
||||
else
|
||||
clear_bit(CRASHED_PRIMARY, &mdev->flags);
|
||||
|
||||
if (drbd_md_test_flag(mdev->ldev, MDF_PRIMARY_IND)) {
|
||||
if (drbd_md_test_flag(mdev->ldev, MDF_PRIMARY_IND) &&
|
||||
!(mdev->state.role == R_PRIMARY && mdev->state.susp &&
|
||||
mdev->sync_conf.on_no_data == OND_SUSPEND_IO)) {
|
||||
set_bit(CRASHED_PRIMARY, &mdev->flags);
|
||||
cp_discovered = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user