]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: call local-io-error handler early
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 18 Jun 2012 09:46:01 +0000 (11:46 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 24 Jul 2012 12:10:41 +0000 (14:10 +0200)
commitf9890d07c784498d39d30cbfd86332026665a7a0
tree6c4a7b4f35345c1f409c3971899ffdd4be935fcc
parentaaee40b2eb3712a3e23c3b9a37bda8c420cc6f79
drbd: call local-io-error handler early

In case we want to hard-reset from the local-io-error handler,
we need to call it before notifying the peer or aborting local IO.
Otherwise the peer will advance its data generation UUIDs even
if secondary.

This way, local io error looks like a "regular" node crash,
which reduces the number of different failure cases.
This may be useful in a bigger picture where crashed or otherwise
"misbehaving" nodes are automatically re-deployed.

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