From: Jens Axboe Date: Mon, 1 Aug 2016 15:39:23 +0000 (-0600) Subject: target: iblock_execute_sync_cache() should use bio_set_op_attrs() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=31c64f78767948986c6c4c6f488803722c6b0e7a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git target: iblock_execute_sync_cache() should use bio_set_op_attrs() The original commit missed this function, it needs to mark it a write flush. Cc: Mike Christie Fixes: e742fc32fcb4 ("target: use bio op accessors") Signed-off-by: Jens Axboe --- diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index 47cf6c977367..372d744315f3 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c @@ -388,7 +388,7 @@ iblock_execute_sync_cache(struct se_cmd *cmd) bio = bio_alloc(GFP_KERNEL, 0); bio->bi_end_io = iblock_end_io_flush; bio->bi_bdev = ib_dev->ibd_bd; - bio->bi_rw = WRITE_FLUSH; + bio_set_op_attrs(bio, REQ_OP_WRITE, WRITE_FLUSH); if (!immed) bio->bi_private = cmd; submit_bio(bio);