]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8a6eed61019be6d8951502d354985c868cc597b
treea45461e71c8aaab46b8322fbaeb55e6d8710d057
parent7b08222fe5ef0c667fab37a533fe49b336359c61
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