projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
target: iblock_execute_sync_cache() should use bio_set_op_attrs()
[platform/kernel/linux-rpi.git]
/
drivers
/
target
/
target_core_iblock.c
diff --git
a/drivers/target/target_core_iblock.c
b/drivers/target/target_core_iblock.c
index
47cf6c9
..
372d744
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);