drbd: Fix for application IO with the on-io-error=pass-on policy
authorPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 2 Mar 2011 23:21:30 +0000 (00:21 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 24 May 2011 07:59:49 +0000 (09:59 +0200)
commit738a84b25cac5af94936e5a1b15cd9909212383c
treeebed88ad337d18ca5f0f29eb938894381c10311d
parent779d530632c98967820d3bbcae15d492fc20301e
drbd: Fix for application IO with the on-io-error=pass-on policy

In case a write failes on the local disk, go into D_INCONSISTENT
disk state. That causes future reads of that block to be shipped
to the peer.

Read retry remote was already in place.

Actually the documentation needs to get fixed now. Since the
application is still shielded from the error. (as long as we have
only a single disk failing) The difference to detach is that
we keep the disk. And therefore might keep all the other, still
working sectors up to date.

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