diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-05-17 08:48:55 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-05-24 04:07:50 -0400 |
commit | fa7d939663b61f5c2bd3436d3aa126d4c0f47aa8 (patch) | |
tree | 2fa5264c72d2b5e8fa8414d1ba90217edc1a7731 /drivers/block | |
parent | a8e407925d49c521151dd24b6376c1f9a04a093f (diff) |
drbd: Disallow the peer_disk_state to be D_OUTDATED while connected
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index fd308864833f..ce6a764e905b 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -745,6 +745,9 @@ is_valid_state(struct drbd_conf *mdev, union drbd_state ns) | |||
745 | mdev->agreed_pro_version < 88) | 745 | mdev->agreed_pro_version < 88) |
746 | rv = SS_NOT_SUPPORTED; | 746 | rv = SS_NOT_SUPPORTED; |
747 | 747 | ||
748 | else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN) | ||
749 | rv = SS_CONNECTED_OUTDATES; | ||
750 | |||
748 | return rv; | 751 | return rv; |
749 | } | 752 | } |
750 | 753 | ||