aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/dm-crypt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c
index d8121234c347..8527827b24f1 100644
--- a/drivers/md/dm-crypt.c
+++ b/drivers/md/dm-crypt.c
@@ -954,6 +954,9 @@ static int crypt_map(struct dm_target *ti, struct bio *bio,
954 struct crypt_config *cc = ti->private; 954 struct crypt_config *cc = ti->private;
955 struct crypt_io *io; 955 struct crypt_io *io;
956 956
957 if (bio_barrier(bio))
958 return -EOPNOTSUPP;
959
957 io = mempool_alloc(cc->io_pool, GFP_NOIO); 960 io = mempool_alloc(cc->io_pool, GFP_NOIO);
958 io->target = ti; 961 io->target = ti;
959 io->base_bio = bio; 962 io->base_bio = bio;