]> err.no Git - linux-2.6/blobdiff - drivers/md/dm-crypt.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[linux-2.6] / drivers / md / dm-crypt.c
index ece7c7c4cdbb99c30aee196124a9487be8cceb80..bdc52d6922b7d998f27068cce53ededb302f0b09 100644 (file)
@@ -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);
+
        bioset_free(cc->bs);
        mempool_destroy(cc->page_pool);
        mempool_destroy(cc->io_pool);
@@ -941,9 +943,6 @@ static int crypt_map(struct dm_target *ti, struct bio *bio,
        struct crypt_config *cc = ti->private;
        struct dm_crypt_io *io;
 
-       if (bio_barrier(bio))
-               return -EOPNOTSUPP;
-
        io = mempool_alloc(cc->io_pool, GFP_NOIO);
        io->target = ti;
        io->base_bio = bio;