From: Milan Broz Disable barriers in dm-crypt because of current workqueue processing can reorder requests. This must be addresed later but for now disabling barriers is needed to prevent data corruption. Signed-off-by: Milan Broz Signed-off-by: Alasdair G Kergon drivers/md/dm-crypt.c | 3 +++ 1 files changed, 3 insertions(+) Index: linux-2.6.21-rc5/drivers/md/dm-crypt.c =================================================================== --- linux-2.6.21-rc5.orig/drivers/md/dm-crypt.c 2007-03-27 14:20:45.000000000 +0100 +++ linux-2.6.21-rc5/drivers/md/dm-crypt.c 2007-03-27 14:20:46.000000000 +0100 @@ -925,6 +925,9 @@ static int crypt_map(struct dm_target *t struct crypt_config *cc = ti->private; struct crypt_io *io; + if (bio_barrier(bio)) + return -EOPNOTSUPP; + io = mempool_alloc(cc->io_pool, GFP_NOIO); io->target = ti; io->base_bio = bio;