projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba13e83
)
target: iblock_execute_sync_cache() should use bio_set_op_attrs()
author
Jens Axboe
<axboe@fb.com>
Mon, 1 Aug 2016 15:39:23 +0000
(09:39 -0600)
committer
Jens Axboe
<axboe@fb.com>
Sun, 7 Aug 2016 20:41:02 +0000
(14:41 -0600)
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>
drivers/target/target_core_iblock.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/target/target_core_iblock.c
b/drivers/target/target_core_iblock.c
index 47cf6c977367ed2b10314a0156f2b5deaaa1ca59..372d744315f38e971da84d1f4eca26a66666a158 100644
(file)
--- 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);