Commit:     80b16c192e469541263d6bfd9177662ceb632ecc
Parent:     d3fec424b23c47686efcf3f2004c3f1c1cee4d9c
Author:     Milan Broz <[EMAIL PROTECTED]>
AuthorDate: Sat Jul 21 04:37:27 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sat Jul 21 17:49:14 2007 -0700

    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
                <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]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/md/dm-crypt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c
index ba952a0..bdc52d6 100644
--- a/drivers/md/dm-crypt.c
+++ b/drivers/md/dm-crypt.c
@@ -920,6 +920,8 @@ static void crypt_dtr(struct dm_target *ti)
        struct crypt_config *cc = (struct crypt_config *) ti->private;
+       flush_workqueue(_kcryptd_workqueue);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to