diff options
Diffstat (limited to 'drivers/block/drbd/drbd_bitmap.c')
-rw-r--r-- | drivers/block/drbd/drbd_bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c index 9611db43cc7a..49603bc67fe4 100644 --- a/drivers/block/drbd/drbd_bitmap.c +++ b/drivers/block/drbd/drbd_bitmap.c | |||
@@ -1088,7 +1088,7 @@ static int bm_rw(struct drbd_conf *mdev, int rw, unsigned lazy_writeout_upper_id | |||
1088 | * "in_flight reached zero, all done" event. | 1088 | * "in_flight reached zero, all done" event. |
1089 | */ | 1089 | */ |
1090 | if (!atomic_dec_and_test(&ctx->in_flight)) | 1090 | if (!atomic_dec_and_test(&ctx->in_flight)) |
1091 | wait_until_done_or_disk_failure(mdev, &ctx->done); | 1091 | wait_until_done_or_disk_failure(mdev, mdev->ldev, &ctx->done); |
1092 | else | 1092 | else |
1093 | kref_put(&ctx->kref, &bm_aio_ctx_destroy); | 1093 | kref_put(&ctx->kref, &bm_aio_ctx_destroy); |
1094 | 1094 | ||
@@ -1195,7 +1195,7 @@ int drbd_bm_write_page(struct drbd_conf *mdev, unsigned int idx) __must_hold(loc | |||
1195 | } | 1195 | } |
1196 | 1196 | ||
1197 | bm_page_io_async(ctx, idx, WRITE_SYNC); | 1197 | bm_page_io_async(ctx, idx, WRITE_SYNC); |
1198 | wait_until_done_or_disk_failure(mdev, &ctx->done); | 1198 | wait_until_done_or_disk_failure(mdev, mdev->ldev, &ctx->done); |
1199 | 1199 | ||
1200 | if (ctx->error) | 1200 | if (ctx->error) |
1201 | drbd_chk_io_error(mdev, 1, true); | 1201 | drbd_chk_io_error(mdev, 1, true); |