From: Christophe Saout <christophe@saout.de>

Ouch.  I added a bogus BUG_ON when rewriting it to use a workqueue. 
(actually the idea was right, but the check wrong, anyway it can't ever
happen if I don't change the code, so just rip it out)



---

 25-akpm/drivers/md/dm-crypt.c |    3 ---
 1 files changed, 3 deletions(-)

diff -puN drivers/md/dm-crypt.c~dm-crypt-remove-bogus-BUG_ON drivers/md/dm-crypt.c
--- 25/drivers/md/dm-crypt.c~dm-crypt-remove-bogus-BUG_ON	Tue Feb 17 14:13:23 2004
+++ 25-akpm/drivers/md/dm-crypt.c	Tue Feb 17 14:13:23 2004
@@ -356,9 +356,6 @@ static void kcryptd_do_work(void *data)
 
 static void kcryptd_queue_io(struct crypt_io *io)
 {
-	/* with the work struct in crypt_io we can only queue whole io's */
-	BUG_ON(atomic_read(&io->pending) != 1);
-
 	INIT_WORK(&io->work, kcryptd_do_work, io);
 	queue_work(_kcryptd_workqueue, &io->work);
 }

_