diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-05-17 12:48:55 (GMT) |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-05-24 08:07:50 (GMT) |
commit | fa7d939663b61f5c2bd3436d3aa126d4c0f47aa8 (patch) | |
tree | 2fa5264c72d2b5e8fa8414d1ba90217edc1a7731 /drivers | |
parent | a8e407925d49c521151dd24b6376c1f9a04a093f (diff) | |
download | linux-fa7d939663b61f5c2bd3436d3aa126d4c0f47aa8.tar.xz |
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')
-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 fd30886..ce6a764 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) mdev->agreed_pro_version < 88) rv = SS_NOT_SUPPORTED; + else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN) + rv = SS_CONNECTED_OUTDATES; + return rv; } |