Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346166
b: refs/heads/master
c: 81f4486
h: refs/heads/master
v: v3
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed Nov 8, 2012
1 parent 8b4d483 commit 4b266e3
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: 38a05c16b8fc855db2294eec36fde2c665b14e8f
refs/heads/master: 81f448629aa25051c47b4d5b81702da8cbe922c3
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 @@ -822,6 +822,7 @@ int __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long s
int local, remote, send_oos = 0;
int err;
int ret = 0;
union drbd_dev_state s;

/* allocate outside of all locks; */
req = drbd_req_new(mdev, bio);
Expand Down Expand Up @@ -884,8 +885,9 @@ int __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long s
drbd_al_begin_io(mdev, &req->i);
}

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

if (!(local || remote) && !drbd_suspended(mdev)) {
Expand Down

0 comments on commit 4b266e3

Please sign in to comment.