diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2015-01-26 11:35:38 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-11-25 09:22:01 -0700 |
commit | 05a72772fcaae4ac88052b6c93aa0d116ff0a748 (patch) | |
tree | 0a6e519cdbe2a9e3be221f13e40262375e9910e4 /drivers/block/drbd/drbd_state.c | |
parent | 92f108b41efdeace60e354bb619c164b50abf6f8 (diff) | |
download | linux-05a72772fcaae4ac88052b6c93aa0d116ff0a748.tar.gz linux-05a72772fcaae4ac88052b6c93aa0d116ff0a748.tar.xz |
drbd: drbdsetup detach of an unresponsive local disk should not block IO "forever"
When detaching, we make sure no application IO is in-flight
by internally suspending IO, then trigger the state change,
wait for the result, and finally internally resume IO again.
Once we triggered the stat change to "Failed",
we expect it to change from Failed to Diskless.
(To avoid races, we actually wait for it to leave "Failed").
On an unresponsive local IO backend, this may not happen, ever.
Don't have a "hung" detach block IO "forever", but resume IO
before waiting for the state change to Diskless.
We may well be able to continue IO to and from a healthy peer.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/drbd/drbd_state.c')
0 files changed, 0 insertions, 0 deletions