Commit 4035e4c2 authored by Philipp Reisner's avatar Philipp Reisner

drbd: Fix clearing of MDF_AL_DISABLED

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 42839f65
...@@ -1226,7 +1226,7 @@ int drbd_adm_disk_opts(struct sk_buff *skb, struct genl_info *info) ...@@ -1226,7 +1226,7 @@ int drbd_adm_disk_opts(struct sk_buff *skb, struct genl_info *info)
mutex_unlock(&mdev->tconn->conf_update); mutex_unlock(&mdev->tconn->conf_update);
if (new_disk_conf->al_updates) if (new_disk_conf->al_updates)
mdev->ldev->md.flags &= MDF_AL_DISABLED; mdev->ldev->md.flags &= ~MDF_AL_DISABLED;
else else
mdev->ldev->md.flags |= MDF_AL_DISABLED; mdev->ldev->md.flags |= MDF_AL_DISABLED;
...@@ -1615,7 +1615,7 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info) ...@@ -1615,7 +1615,7 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info)
flags. */ flags. */
if (rcu_dereference(mdev->ldev->disk_conf)->al_updates) if (rcu_dereference(mdev->ldev->disk_conf)->al_updates)
mdev->ldev->md.flags &= MDF_AL_DISABLED; mdev->ldev->md.flags &= ~MDF_AL_DISABLED;
else else
mdev->ldev->md.flags |= MDF_AL_DISABLED; mdev->ldev->md.flags |= MDF_AL_DISABLED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment