aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_nl.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-05-04 09:25:35 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 10:55:46 -0500
commite544046ab842ab93c275a6fc4e043c1cb637076d (patch)
treea27a297d4ab46d58db657c5a320fcb654ab835ce /drivers/block/drbd/drbd_nl.c
parentd0c980e236243cd03aa2291243587ac1ba3c2b04 (diff)
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)
1449 1449
1450 /* Reset the "barriers don't work" bits here, then force meta data to 1450 /* Reset the "barriers don't work" bits here, then force meta data to
1451 * be written, to ensure we determine if barriers are supported. */ 1451 * be written, to ensure we determine if barriers are supported. */
1452 if (new_disk_conf->no_md_flush) 1452 if (new_disk_conf->md_flushes)
1453 set_bit(MD_NO_FUA, &mdev->flags);
1454 else
1455 clear_bit(MD_NO_FUA, &mdev->flags); 1453 clear_bit(MD_NO_FUA, &mdev->flags);
1454 else
1455 set_bit(MD_NO_FUA, &mdev->flags);
1456 1456
1457 /* Point of no return reached. 1457 /* Point of no return reached.
1458 * Devices and memory are no longer released by error cleanup below. 1458 * Devices and memory are no longer released by error cleanup below.