drbd: we should write meta data updates with FLUSH FUA
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 28 Jun 2011 11:22:48 +0000 (13:22 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 30 Jun 2011 07:23:46 +0000 (09:23 +0200)
commit86e1e98e5c6b4edab97e2b058466ef553cfd878e
treee8b26c03a90edaf5214a094d3dcb1b223041b862
parent15b493d11fcce3c5547e3d7fb6d90e11ffe12777
drbd: we should write meta data updates with FLUSH FUA

We used to write these with BIO_RW_BARRIER aka REQ_HARDBARRIER (unless
disabled in the configuration). The correct semantic now would be to
write with FLUSH/FUA.
For example, with activity log transactions, FUA alone is not enough, we
need the corresponding bitmap update (and all related application
updates) on stable storage as well.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_actlog.c