dm-crypt: remove completion restart It won't be used in this context anyway. Signed-off-by: Mikulas Patocka --- drivers/md/dm-crypt.c | 5 ----- 1 file changed, 5 deletions(-) Index: linux-3.2-fast/drivers/md/dm-crypt.c =================================================================== --- linux-3.2-fast.orig/drivers/md/dm-crypt.c 2012-01-15 23:30:13.000000000 +0100 +++ linux-3.2-fast/drivers/md/dm-crypt.c 2012-01-15 23:30:15.000000000 +0100 @@ -34,7 +34,6 @@ * context holding the current state of a multi-part conversion */ struct convert_context { - struct completion restart; struct bio *bio_in; struct bio *bio_out; unsigned int offset_in; @@ -637,7 +636,6 @@ static void crypt_convert_init(struct cr ctx->idx_in = bio_in ? bio_in->bi_idx : 0; ctx->idx_out = bio_out ? bio_out->bi_idx : 0; ctx->sector = sector + cc->iv_offset; - init_completion(&ctx->restart); } static struct dm_crypt_request *dmreq_of_req(struct crypt_config *cc, @@ -753,8 +751,6 @@ static int crypt_convert(struct crypt_co switch (r) { /* async */ case -EBUSY: - wait_for_completion(&ctx->restart); - INIT_COMPLETION(ctx->restart); /* fall through*/ case -EINPROGRESS: ctx->req = NULL; @@ -1168,7 +1164,6 @@ static void kcryptd_async_done(struct cr struct crypt_config *cc = io->target->private; if (error == -EINPROGRESS) { - complete(&ctx->restart); return; }