Lars Ellenberg e1fbc4ca9d drbd: Send P_NEG_ACK upon write error in protocol != C
In protocol != C, we forgot to send the P_NEG_ACK for failing writes.

Once we no longer submit to local disk, because we already "detached",
due to the typical "on-io-error detach;" config setting,
we already send the neg acks right away.

Only those requests that have been submitted,
and have been error-completed by the local disk,
would forget to send the neg-ack,
and only in asynchronous replication (protocol != C).
Unless this happened during resync,
where we already always send acks, regardless of protocol.

The primary side needs the P_NEG_ACK in order to mark
the affected block(s) for resync in its out-of-sync bitmap.

If the blocks in question are not re-written again,
we may miss to resync them later, causing data inconsistencies.

This patch will always send the neg-acks, and also at least try to
persist the out-of-sync status on the local node already.

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>
2017-08-29 15:34:44 -06:00
..
2017-02-22 11:54:49 -07:00
2017-07-06 12:23:51 -06:00
2017-02-21 11:51:42 -08:00
2017-08-23 08:54:02 -06:00
2017-06-08 08:40:00 -06:00
2017-04-19 09:10:51 -06:00
2017-08-28 15:21:27 -06:00
2017-02-20 12:16:15 +01:00
2017-08-18 08:45:29 -06:00
2009-03-26 21:15:27 +01:00
2017-08-18 08:36:58 -06:00