Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c89f8be authored by Milan Broz's avatar Milan Broz Committed by Linus Torvalds
Browse files

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: default avatarMilan Broz <mbroz@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6ad36fe2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -954,6 +954,9 @@ static int crypt_map(struct dm_target *ti, struct bio *bio,
	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;