Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346223
b: refs/heads/master
c: 6f1a656
h: refs/heads/master
i:
  346221: e58a4ce
  346219: c0bba9a
  346215: 6744406
  346207: 572805e
v: v3
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed Nov 8, 2012
1 parent 24f6ef6 commit 00245d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a324896b173e569fb831c5caa04ccd02ec0bc9ca
refs/heads/master: 6f1a656325ea01638de44f8d40bb77c73181b275
6 changes: 3 additions & 3 deletions trunk/drivers/block/drbd/drbd_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,9 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,

was_io_error = test_and_clear_bit(WAS_IO_ERROR, &mdev->flags);

if (was_io_error && eh == EP_CALL_HELPER)
drbd_khelper(mdev, "local-io-error");

/* Immediately allow completion of all application IO,
* that waits for completion from the local disk,
* if this was a force-detach due to disk_timeout
Expand Down Expand Up @@ -1377,9 +1380,6 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
drbd_md_sync(mdev);
}
put_ldev(mdev);

if (was_io_error && eh == EP_CALL_HELPER)
drbd_khelper(mdev, "local-io-error");
}

/* second half of local IO error, failure to attach,
Expand Down

0 comments on commit 00245d8

Please sign in to comment.