summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_nl.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher2011-05-04 15:25:35 +0200
committerPhilipp Reisner2012-11-08 16:55:46 +0100
commite544046ab842ab93c275a6fc4e043c1cb637076d (patch)
treea27a297d4ab46d58db657c5a320fcb654ab835ce /drivers/block/drbd/drbd_nl.c
parentdrbd: Turn no-disk-drain into disk-drain={yes|no} (diff)
downloadkernel-qcow2-linux-e544046ab842ab93c275a6fc4e043c1cb637076d.tar.gz
kernel-qcow2-linux-e544046ab842ab93c275a6fc4e043c1cb637076d.tar.xz
kernel-qcow2-linux-e544046ab842ab93c275a6fc4e043c1cb637076d.zip
drbd: Turn no-md-flushes into md-flushes={yes|no}
Change the --no-md-flushes drbdsetup command line option as well as the no_md_flush netlink packet. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_nl.c')
-rw-r--r--drivers/block/drbd/drbd_nl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
index 9af097416e26..4a946a877bde 100644
--- a/drivers/block/drbd/drbd_nl.c
+++ b/drivers/block/drbd/drbd_nl.c
@@ -1449,10 +1449,10 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info)
/* Reset the "barriers don't work" bits here, then force meta data to
* be written, to ensure we determine if barriers are supported. */
- if (new_disk_conf->no_md_flush)
- set_bit(MD_NO_FUA, &mdev->flags);
- else
+ if (new_disk_conf->md_flushes)
clear_bit(MD_NO_FUA, &mdev->flags);
+ else
+ set_bit(MD_NO_FUA, &mdev->flags);
/* Point of no return reached.
* Devices and memory are no longer released by error cleanup below.