drbd: only fail empty flushes if no good data is reachable
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 27 Mar 2013 13:08:41 +0000 (14:08 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Mar 2013 16:10:25 +0000 (10:10 -0600)
commit7074e4a745799d521b17775f6d076d84dc7f8c50
treea45461e71c8aaab46b8322fbaeb55e6d8710d057
parent2bd5ed5d6713594eb2b4d234d01217d506279c7d
drbd: only fail empty flushes if no good data is reachable

We completed empty flushes (blkdev_issue_flush()) with IO error
if we lost the local disk, even if we still have an established
replication link to a healthy remote disk.

Fix this to only report errors to upper layers,
if neither local nor remote data is reachable.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_req.c
drivers/block/drbd/drbd_req.h