Skip to content

Commit 31c64f7

Browse files
committed
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 <[email protected]> Fixes: e742fc3 ("target: use bio op accessors") Signed-off-by: Jens Axboe <[email protected]>
1 parent ba13e83 commit 31c64f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/target/target_core_iblock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ iblock_execute_sync_cache(struct se_cmd *cmd)
388388
bio = bio_alloc(GFP_KERNEL, 0);
389389
bio->bi_end_io = iblock_end_io_flush;
390390
bio->bi_bdev = ib_dev->ibd_bd;
391-
bio->bi_rw = WRITE_FLUSH;
391+
bio_set_op_attrs(bio, REQ_OP_WRITE, WRITE_FLUSH);
392392
if (!immed)
393393
bio->bi_private = cmd;
394394
submit_bio(bio);

0 commit comments

Comments
 (0)