diff options
Diffstat (limited to 'drivers/block/drbd/drbd_state.c')
-rw-r--r-- | drivers/block/drbd/drbd_state.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c index 4c13a6f4f184..f51cefdbeff3 100644 --- a/drivers/block/drbd/drbd_state.c +++ b/drivers/block/drbd/drbd_state.c | |||
@@ -29,6 +29,9 @@ | |||
29 | #include "drbd_int.h" | 29 | #include "drbd_int.h" |
30 | #include "drbd_req.h" | 30 | #include "drbd_req.h" |
31 | 31 | ||
32 | /* in drbd_main.c */ | ||
33 | extern void tl_apply(struct drbd_conf *mdev, enum drbd_req_event what); | ||
34 | |||
32 | struct after_state_chg_work { | 35 | struct after_state_chg_work { |
33 | struct drbd_work w; | 36 | struct drbd_work w; |
34 | union drbd_state os; | 37 | union drbd_state os; |
@@ -1315,6 +1318,10 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os, | |||
1315 | rcu_read_unlock(); | 1318 | rcu_read_unlock(); |
1316 | was_io_error = test_and_clear_bit(WAS_IO_ERROR, &mdev->flags); | 1319 | was_io_error = test_and_clear_bit(WAS_IO_ERROR, &mdev->flags); |
1317 | 1320 | ||
1321 | /* Immediately allow completion of all application IO, that waits | ||
1322 | for completion from the local disk. */ | ||
1323 | tl_apply(mdev, ABORT_DISK_IO); | ||
1324 | |||
1318 | /* current state still has to be D_FAILED, | 1325 | /* current state still has to be D_FAILED, |
1319 | * there is only one way out: to D_DISKLESS, | 1326 | * there is only one way out: to D_DISKLESS, |
1320 | * and that may only happen after our put_ldev below. */ | 1327 | * and that may only happen after our put_ldev below. */ |