diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2012-10-25 18:41:50 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-12-06 07:00:04 -0500 |
commit | 691631c0652bc47e6d20b0d981e23a9025fd794e (patch) | |
tree | 86f1b42988865dc1e43aba9a76b1a421b2f4144c | |
parent | 298307ed1d2ac4815b0ce9a5f1c9cc643f4a9aca (diff) |
drbd: respect no-md-barriers setting also when changed online via disk-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>
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index 76bb3a684b86..536f94a1ba5d 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c | |||
@@ -1230,6 +1230,11 @@ int drbd_adm_disk_opts(struct sk_buff *skb, struct genl_info *info) | |||
1230 | else | 1230 | else |
1231 | mdev->ldev->md.flags |= MDF_AL_DISABLED; | 1231 | mdev->ldev->md.flags |= MDF_AL_DISABLED; |
1232 | 1232 | ||
1233 | if (new_disk_conf->md_flushes) | ||
1234 | clear_bit(MD_NO_FUA, &mdev->flags); | ||
1235 | else | ||
1236 | set_bit(MD_NO_FUA, &mdev->flags); | ||
1237 | |||
1233 | drbd_bump_write_ordering(mdev->tconn, WO_bdev_flush); | 1238 | drbd_bump_write_ordering(mdev->tconn, WO_bdev_flush); |
1234 | 1239 | ||
1235 | drbd_md_sync(mdev); | 1240 | drbd_md_sync(mdev); |