Skip to content

Commit

Permalink
drbdsetup X resume-io should be usable to resume IO [Bugz 256]
Browse files Browse the repository at this point in the history
When IO gets frozen due to a broken fence-peer script, the user
should be able to thaw IO by the resume-io command.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Philipp Reisner committed Nov 4, 2009
1 parent 1352994 commit 0a49216
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,10 +867,9 @@ static union drbd_state sanitize_state(struct drbd_conf *mdev, union drbd_state
}

if (fp == FP_STONITH &&
(ns.role == R_PRIMARY &&
ns.conn < C_CONNECTED &&
ns.pdsk > D_OUTDATED))
ns.susp = 1;
(ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) &&
!(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED))
ns.susp = 1;

if (ns.aftr_isp || ns.peer_isp || ns.user_isp) {
if (ns.conn == C_SYNC_SOURCE)
Expand Down

0 comments on commit 0a49216

Please sign in to comment.