aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-07-15 12:44:26 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-05-09 09:15:42 -0400
commit79f16f5dbc95da372c25afddac80f4adef3cfce1 (patch)
tree90deb417250c3dc27997219e5bd64f396573f590
parentbca482e90bf87569ffb87cba2c3a777ac23e5c86 (diff)
drbd: Consider that the no-data-condition could be in connected state
...when the peer has inconsistent data. In that case we failed to clear the susp_nod flag. When the local disk was attached again Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-rw-r--r--drivers/block/drbd/drbd_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index b62e3559b50c..0ee05315f9ac 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -1412,7 +1412,8 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
1412 if (os.conn < C_CONNECTED && ns.conn >= C_CONNECTED) 1412 if (os.conn < C_CONNECTED && ns.conn >= C_CONNECTED)
1413 what = resend; 1413 what = resend;
1414 1414
1415 if (os.disk == D_ATTACHING && ns.disk > D_ATTACHING) 1415 if ((os.disk == D_ATTACHING || os.disk == D_NEGOTIATING) &&
1416 ns.disk > D_NEGOTIATING)
1416 what = restart_frozen_disk_io; 1417 what = restart_frozen_disk_io;
1417 1418
1418 if (what != nothing) 1419 if (what != nothing)