Skip to content

Commit

Permalink
drbd: respect no-md-barriers setting also when changed online via dis…
Browse files Browse the repository at this point in the history
…k-options

We need to propagate the configuration into the flag bits,
or it won't be effective.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed Dec 6, 2012
1 parent 298307e commit 691631c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/block/drbd/drbd_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,11 @@ int drbd_adm_disk_opts(struct sk_buff *skb, struct genl_info *info)
else
mdev->ldev->md.flags |= MDF_AL_DISABLED;

if (new_disk_conf->md_flushes)
clear_bit(MD_NO_FUA, &mdev->flags);
else
set_bit(MD_NO_FUA, &mdev->flags);

drbd_bump_write_ordering(mdev->tconn, WO_bdev_flush);

drbd_md_sync(mdev);
Expand Down

0 comments on commit 691631c

Please sign in to comment.