Skip to content

Commit

Permalink
drbd: There might be a resync after unfreezing IO due to no disk [Bug…
Browse files Browse the repository at this point in the history
…z 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>
  • Loading branch information
Philipp Reisner committed Mar 10, 2011
1 parent 725a97e commit 3f98688
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,16 +1347,14 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,

nsm.i = -1;
if (ns.susp_nod) {
if (os.conn < C_CONNECTED && ns.conn >= C_CONNECTED) {
if (ns.conn == C_CONNECTED)
what = resend, nsm.susp_nod = 0;
else /* ns.conn > C_CONNECTED */
dev_err(DEV, "Unexpected Resync going on!\n");
}
if (os.conn < C_CONNECTED && ns.conn >= C_CONNECTED)
what = resend;

if (os.disk == D_ATTACHING && ns.disk > D_ATTACHING)
what = restart_frozen_disk_io, nsm.susp_nod = 0;
what = restart_frozen_disk_io;

if (what != nothing)
nsm.susp_nod = 0;
}

if (ns.susp_fen) {
Expand Down

0 comments on commit 3f98688

Please sign in to comment.