]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/md/dm-raid1.c
Merge tag 'mmc-v4.10-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[karo-tx-linux.git] / drivers / md / dm-raid1.c
index 9a8b71067c6eba52dca7a4050a75cc51199ffbe5..2ddc2d20e62d17c603900959d40f541bf5eec076 100644 (file)
@@ -260,7 +260,7 @@ static int mirror_flush(struct dm_target *ti)
        struct mirror *m;
        struct dm_io_request io_req = {
                .bi_op = REQ_OP_WRITE,
-               .bi_op_flags = WRITE_FLUSH,
+               .bi_op_flags = REQ_PREFLUSH,
                .mem.type = DM_IO_KMEM,
                .mem.ptr.addr = NULL,
                .client = ms->io_client,
@@ -656,7 +656,7 @@ static void do_write(struct mirror_set *ms, struct bio *bio)
        struct mirror *m;
        struct dm_io_request io_req = {
                .bi_op = REQ_OP_WRITE,
-               .bi_op_flags = bio->bi_opf & WRITE_FLUSH_FUA,
+               .bi_op_flags = bio->bi_opf & (REQ_FUA | REQ_PREFLUSH),
                .mem.type = DM_IO_BIO,
                .mem.ptr.bio = bio,
                .notify.fn = write_callback,