Milan Broz 80b16c192e dm io: fix panic on large request
Flush workqueue before releasing bioset and mopools in dm-crypt.  There can
be finished but not yet released request.

Call chain causing oops:
  run workqueue
    dec_pending
      bio_endio(...);
      	<remove device request - remove mempool>
      mempool_free(io, cc->io_pool);

This usually happens when cryptsetup create temporary
luks mapping in the beggining of crypt device activation.

When dm-core calls destructor crypt_dtr, no new request
are possible.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Cc: Chuck Ebbert <cebbert@redhat.com>
Cc: Patrick McHardy <kaber@trash.net>
Acked-by: Alasdair G Kergon <agk@redhat.com>
Cc: Christophe Saout <christophe@saout.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-21 17:49:14 -07:00
..
2005-09-17 11:49:58 -07:00
2006-01-01 22:21:50 +01:00
2007-07-12 15:01:08 -07:00
2005-04-16 15:20:36 -07:00
2007-07-21 17:49:14 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:46 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:47 -07:00
2007-05-09 12:30:48 -07:00
2007-07-12 15:01:23 -07:00
2007-07-12 15:01:08 -07:00
2007-07-12 15:01:08 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:47 -07:00
2007-07-12 15:01:08 -07:00
2007-07-17 10:23:15 -07:00
2007-07-12 15:01:08 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-17 11:49:58 -07:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00