]> Git Repo - linux.git/commit - drivers/md/dm-crypt.c
dm io: fix panic on large request
authorMilan Broz <[email protected]>
Sat, 21 Jul 2007 11:37:27 +0000 (04:37 -0700)
committerLinus Torvalds <[email protected]>
Sun, 22 Jul 2007 00:49:14 +0000 (17:49 -0700)
commit80b16c192e469541263d6bfd9177662ceb632ecc
treec6e8a0abc281eac6e8139b38c4152dc366693f13
parentd3fec424b23c47686efcf3f2004c3f1c1cee4d9c
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 <[email protected]>
Cc: Chuck Ebbert <[email protected]>
Cc: Patrick McHardy <[email protected]>
Acked-by: Alasdair G Kergon <[email protected]>
Cc: Christophe Saout <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/dm-crypt.c
This page took 0.050125 seconds and 4 git commands to generate.