diff options
author | Milan Broz <mbroz@redhat.com> | 2007-05-09 05:32:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-09 15:30:46 -0400 |
commit | 9c89f8be1a7d14aad9d2c3f7d90d7d88f82c61e2 (patch) | |
tree | 0e94f77a0d9fda323b12dd4e26f0e08aa2fff7ef /drivers | |
parent | 6ad36fe2b451cc85cc7b14f4128286759e217124 (diff) |
dm crypt: disable barriers
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 <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-crypt.c | 3 |
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; |