Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346186
b: refs/heads/master
c: 27eb13e
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Reisner committed Nov 8, 2012
1 parent 7f26eb4 commit 692d920
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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: 9ed57dcbda37a1a1fb25ccda4206cc417e54e813
refs/heads/master: 27eb13e99b515c52ba5a151a1acce6afb8a9b2b6
3 changes: 3 additions & 0 deletions trunk/drivers/block/drbd/drbd_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,9 @@ int drbd_adm_disk_opts(struct sk_buff *skb, struct genl_info *info)
}

mutex_unlock(&mdev->tconn->conf_update);

drbd_bump_write_ordering(mdev->tconn, WO_bdev_flush);

drbd_md_sync(mdev);

if (mdev->state.conn >= C_CONNECTED)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ void drbd_bump_write_ordering(struct drbd_tconn *tconn, enum write_ordering_e wo
wo = min(pwo, wo);
rcu_read_lock();
idr_for_each_entry(&tconn->volumes, mdev, vnr) {
if (!get_ldev(mdev))
if (!get_ldev_if_state(mdev, D_ATTACHING))
continue;
dc = rcu_dereference(mdev->ldev->disk_conf);

Expand Down

0 comments on commit 692d920

Please sign in to comment.