drbd: allow write-ordering policy to be bumped up again
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 20 Dec 2013 10:17:02 +0000 (11:17 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 13:22:22 +0000 (15:22 +0200)
commit70df70927b75eb86f12b14167c398b99dc3a56e4
tree81225e07ec255438893b727d99937ffa16cdc732
parent44a4d551846b8c61aa430b9432c1fcdf88444708
drbd: allow write-ordering policy to be bumped up again

Previously, once you disabled flushes as a means of enforcing
write-ordering, you'd need to detach/re-attach to enable them again.

Allow drbdsetup disk-options to re-enable previously disabled
write-ordering policy options at runtime.

While at it fix RCU in drbd_bump_write_ordering()
max_allowed_wo() uses rcu_dereference, therefore it must
be called within rcu_read_lock()/rcu_read_unlock()

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c
This page took 0.024692 seconds and 5 git commands to generate.