Skip to content

Commit

Permalink
target: iblock_execute_sync_cache() should use bio_set_op_attrs()
Browse files Browse the repository at this point in the history
The original commit missed this function, it needs to mark it a
write flush.

Cc: Mike Christie <[email protected]>
Fixes: e742fc3 ("target: use bio op accessors")
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Aug 7, 2016
1 parent ba13e83 commit 31c64f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/target_core_iblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 31c64f7

Please sign in to comment.