<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From: Milan Broz &lt;mbroz@redhat.com&gt;

Remove waitqueue no longer needed with the async crypto interface.

Signed-off-by: Milan Broz &lt;mbroz@redhat.com&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
---
 drivers/md/dm-crypt.c |    8 --------
 1 files changed, 8 deletions(-)

Index: linux-2.6.27/drivers/md/dm-crypt.c
===================================================================
--- linux-2.6.27.orig/drivers/md/dm-crypt.c	2008-10-21 17:33:49.000000000 +0100
+++ linux-2.6.27/drivers/md/dm-crypt.c	2008-10-21 17:33:50.000000000 +0100
@@ -94,7 +94,6 @@ struct crypt_config {
 
 	struct workqueue_struct *io_queue;
 	struct workqueue_struct *crypt_queue;
-	wait_queue_head_t writeq;
 
 	/*
 	 * crypto related data
@@ -656,10 +655,7 @@ static void kcryptd_io_read(struct dm_cr
 static void kcryptd_io_write(struct dm_crypt_io *io)
 {
 	struct bio *clone = io-&gt;ctx.bio_out;
-	struct crypt_config *cc = io-&gt;target-&gt;private;
-
 	generic_make_request(clone);
-	wake_up(&amp;cc-&gt;writeq);
 }
 
 static void kcryptd_io(struct work_struct *work)
@@ -791,9 +787,6 @@ static void kcryptd_crypt_write_convert(
 
 			io = new_io;
 		}
-
-		if (unlikely(remaining))
-			wait_event(cc-&gt;writeq, !atomic_read(&amp;io-&gt;ctx.pending));
 	}
 
 	crypt_dec_pending(io);
@@ -1120,7 +1113,6 @@ static int crypt_ctr(struct dm_target *t
 		goto bad_crypt_queue;
 	}
 
-	init_waitqueue_head(&amp;cc-&gt;writeq);
 	ti-&gt;private = cc;
 	return 0;
 
</pre></body></html>