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>
This commit is contained in:
Milan Broz 2007-05-09 02:32:51 -07:00 коммит произвёл Linus Torvalds
Родитель 6ad36fe2b4
Коммит 9c89f8be1a
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -954,6 +954,9 @@ static int crypt_map(struct dm_target *ti, struct bio *bio,
struct crypt_config *cc = ti->private; struct crypt_config *cc = ti->private;
struct crypt_io *io; struct crypt_io *io;
if (bio_barrier(bio))
return -EOPNOTSUPP;
io = mempool_alloc(cc->io_pool, GFP_NOIO); io = mempool_alloc(cc->io_pool, GFP_NOIO);
io->target = ti; io->target = ti;
io->base_bio = bio; io->base_bio = bio;