Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213099
b: refs/heads/master
c: 905cd7d
h: refs/heads/master
i:
  213097: 18da480
  213095: 6e76ff4
v: v3
  • Loading branch information
Philipp Reisner committed Oct 14, 2010
1 parent 3e065ab commit b896811
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 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: 5ba82308ea766b33404cb130a88fe4113d9c20a3
refs/heads/master: 905cd7d8ac9b18e1f122b90dbebe1246b1c364fd
15 changes: 0 additions & 15 deletions trunk/drivers/block/drbd/drbd_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,21 +984,6 @@ static int drbd_fail_request_early(struct drbd_conf *mdev, int is_write)
return 1;
}

/*
* Paranoia: we might have been primary, but sync target, or
* even diskless, then lost the connection.
* This should have been handled (panic? suspend?) somewhere
* else. But maybe it was not, so check again here.
* Caution: as long as we do not have a read/write lock on mdev,
* to serialize state changes, this is racy, since we may lose
* the connection *after* we test for the cstate.
*/
if (mdev->state.disk < D_UP_TO_DATE && mdev->state.pdsk < D_UP_TO_DATE) {
if (__ratelimit(&drbd_ratelimit_state))
dev_err(DEV, "Sorry, I have no access to good data anymore.\n");
return 1;
}

return 0;
}

Expand Down

0 comments on commit b896811

Please sign in to comment.