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.1-fast/drivers/md/dm-crypt.c =================================================================== --- linux-3.1-fast.orig/drivers/md/dm-crypt.c 2011-10-24 14:58:26.000000000 +0200 +++ linux-3.1-fast/drivers/md/dm-crypt.c 2011-10-24 17:07:14.000000000 +0200 @@ -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; @@ -1169,7 +1165,6 @@ static void kcryptd_async_done(struct cr struct crypt_config *cc = io->target->private; if (error == -EINPROGRESS) { - complete(&ctx->restart); return; }