Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309331
b: refs/heads/master
c: fc28845
h: refs/heads/master
i:
  309329: 81564be
  309327: f07c5d5
v: v3
  • Loading branch information
Philipp Reisner committed May 9, 2012
1 parent 43c2882 commit 626e9b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 031a7c173ffda664ac5551bd13c313e513dd87a7
refs/heads/master: fc28845bc005995b41ae8c83c7922d088f0ad228
6 changes: 4 additions & 2 deletions trunk/drivers/block/drbd/drbd_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ static int drbd_make_request_common(struct drbd_conf *mdev, struct bio *bio, uns
int local, remote, send_oos = 0;
int err = -EIO;
int ret = 0;
union drbd_state s;

/* allocate outside of all locks; */
req = drbd_req_new(mdev, bio);
Expand Down Expand Up @@ -847,8 +848,9 @@ static int drbd_make_request_common(struct drbd_conf *mdev, struct bio *bio, uns
drbd_al_begin_io(mdev, sector);
}

remote = remote && drbd_should_do_remote(mdev->state);
send_oos = rw == WRITE && drbd_should_send_oos(mdev->state);
s = mdev->state;
remote = remote && drbd_should_do_remote(s);
send_oos = rw == WRITE && drbd_should_send_oos(s);
D_ASSERT(!(remote && send_oos));

if (!(local || remote) && !is_susp(mdev->state)) {
Expand Down

0 comments on commit 626e9b9

Please sign in to comment.