diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-12-20 08:48:20 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-10 05:45:20 -0500 |
commit | 3f98688afc2ce0138fc88e272bdd128e1e0b0976 (patch) | |
tree | 05a92b453947ad33ca4270cd134261bcabb9cd9a /drivers/block | |
parent | 725a97e43ee945cc813fffd9e628e50d703b973b (diff) |
drbd: There might be a resync after unfreezing IO due to no disk [Bugz 332]
When on-no-data-accessible is set to suspend-io, also consider that
a Primary, SyncTarget node losses its connection.
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 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 755297a15633..9bd53cf2cdb2 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -1347,16 +1347,14 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os, | |||
1347 | 1347 | ||
1348 | nsm.i = -1; | 1348 | nsm.i = -1; |
1349 | if (ns.susp_nod) { | 1349 | if (ns.susp_nod) { |
1350 | if (os.conn < C_CONNECTED && ns.conn >= C_CONNECTED) { | 1350 | if (os.conn < C_CONNECTED && ns.conn >= C_CONNECTED) |
1351 | if (ns.conn == C_CONNECTED) | 1351 | what = resend; |
1352 | what = resend, nsm.susp_nod = 0; | ||
1353 | else /* ns.conn > C_CONNECTED */ | ||
1354 | dev_err(DEV, "Unexpected Resync going on!\n"); | ||
1355 | } | ||
1356 | 1352 | ||
1357 | if (os.disk == D_ATTACHING && ns.disk > D_ATTACHING) | 1353 | if (os.disk == D_ATTACHING && ns.disk > D_ATTACHING) |
1358 | what = restart_frozen_disk_io, nsm.susp_nod = 0; | 1354 | what = restart_frozen_disk_io; |
1359 | 1355 | ||
1356 | if (what != nothing) | ||
1357 | nsm.susp_nod = 0; | ||
1360 | } | 1358 | } |
1361 | 1359 | ||
1362 | if (ns.susp_fen) { | 1360 | if (ns.susp_fen) { |