mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]>
This commit is contained in:
parent
298307ed1d
commit
691631c065
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue