aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-08-01 11:39:23 -0400
committerJens Axboe <axboe@fb.com>2016-08-07 16:41:02 -0400
commit31c64f78767948986c6c4c6f488803722c6b0e7a (patch)
tree9912bfd411a7bb0a11f6a5b8d2f719d239f246f8 /drivers
parentba13e83ec334ca8a1c6bec882a6efc98d8bf355d (diff)
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 <mchristi@redhat.com> Fixes: e742fc32fcb4 ("target: use bio op accessors") Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/target/target_core_iblock.c2
1 files changed, 1 insertions, 1 deletions
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)
388 bio = bio_alloc(GFP_KERNEL, 0); 388 bio = bio_alloc(GFP_KERNEL, 0);
389 bio->bi_end_io = iblock_end_io_flush; 389 bio->bi_end_io = iblock_end_io_flush;
390 bio->bi_bdev = ib_dev->ibd_bd; 390 bio->bi_bdev = ib_dev->ibd_bd;
391 bio->bi_rw = WRITE_FLUSH; 391 bio_set_op_attrs(bio, REQ_OP_WRITE, WRITE_FLUSH);
392 if (!immed) 392 if (!immed)
393 bio->bi_private = cmd; 393 bio->bi_private = cmd;
394 submit_bio(bio); 394 submit_bio(bio);