aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_state.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2013-03-27 14:08:35 +0100
committerJens Axboe <axboe@kernel.dk>2013-03-28 10:10:24 -0600
commita700471bf335965e7603273fd51034415553246a (patch)
tree2993750346f31eda81e1b0d531469087ace71206 /drivers/block/drbd/drbd_state.c
parentdrbd: reset ap_in_flight counter for new connections (diff)
downloadlinux-dev-a700471bf335965e7603273fd51034415553246a.tar.xz
linux-dev-a700471bf335965e7603273fd51034415553246a.zip
drbd: abort start of resync early, if it raced with connection breakage
We've seen a spurious full resync, because a connection breakage raced with drbd_start_resync(, C_SYNC_TARGET), and the resulting state change request intended to start the resync ended up looking like a local invalidate. Fix: Double check the state inside the lock, and don't even request that state change, if we had connection or IO problems. 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>
Diffstat (limited to 'drivers/block/drbd/drbd_state.c')
0 files changed, 0 insertions, 0 deletions