linux_dsm_epyc7002/drivers/block/drbd
Lars Ellenberg 6719fb036c drbd: fix potential data divergence after multiple failures
If we get an IO-error during an activity log transaction,
if we failed to write the bitmap of the evicted extent,
we must not write the transaction itself.
If we failed to write the transaction,
we must not even submit the corresponding bio,
as its extent is not yet marked in the activity log.

Otherwise, if this was a disconneted Primary (degraded cluster), which
now lost its disk as well, and we later re-attach the same backend
storage, we possibly "forget" to resync some parts of the disk that
potentially have been changed.

On the receiving side, when receiving from a peer with unhealthy disk,
checking for pdsk == D_DISKLESS is not enough, we need to set out of
sync and do AL transactions for everything pdsk < D_INCONSISTENT on the
receiving side.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2010-10-22 15:50:27 +02:00
..
drbd_actlog.c drbd: fix potential data divergence after multiple failures 2010-10-22 15:50:27 +02:00
drbd_bitmap.c drbd: Disable activity log updates when the whole device is out of sync 2010-10-14 18:38:26 +02:00
drbd_int.h drbd: fix potential deadlock on detach 2010-10-22 15:46:11 +02:00
drbd_main.c drbd: fix potential deadlock on detach 2010-10-22 15:46:11 +02:00
drbd_nl.c drbd: fix potential deadlock on detach 2010-10-22 15:46:11 +02:00
drbd_proc.c drbd: cleanup: change "<= 0" to "== 0" 2010-10-14 19:17:23 +02:00
drbd_receiver.c drbd: fix potential data divergence after multiple failures 2010-10-22 15:50:27 +02:00
drbd_req.c drbd: fix potential data divergence after multiple failures 2010-10-22 15:50:27 +02:00
drbd_req.h drbd: Disable activity log updates when the whole device is out of sync 2010-10-14 18:38:26 +02:00
drbd_strings.c drbd: don't start a resync without access to up-to-date Data 2010-05-18 01:08:18 +02:00
drbd_vli.h
drbd_worker.c drbd: add explicit drbd_md_sync to drbd_resync_finished 2010-10-14 18:38:52 +02:00
drbd_wrappers.h drbd: Allow drbd_epoch_entries to use multiple bios. 2010-05-18 02:01:23 +02:00
Kconfig drbd: Kconfig fix 2009-12-29 17:38:28 +01:00
Makefile drbd: remove tracing bits 2009-10-01 21:17:58 +02:00