aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-06-17 18:40:53 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-07-16 20:29:12 -0400
commitad67f0d9e63ca94661e06a145f05a9302368a826 (patch)
tree2ada5604a0f61fa1f933f29cd4674f0cb95595c6 /include/target
parent0c2ad7d1132d8b089b1d37875917858e03610019 (diff)
target: move sync_cache to struct spc_ops
Add spc_ops->execute_sync_cache() caller for ->execute_cmd() setup, and update IBLOCK + FILEIO backends to use it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_backend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/target/target_core_backend.h b/include/target/target_core_backend.h
index 9b4f2c92ed53..5797b1164c80 100644
--- a/include/target/target_core_backend.h
+++ b/include/target/target_core_backend.h
@@ -27,7 +27,6 @@ struct se_subsystem_api {
27 27
28 int (*parse_cdb)(struct se_cmd *cmd); 28 int (*parse_cdb)(struct se_cmd *cmd);
29 int (*do_discard)(struct se_device *, sector_t, u32); 29 int (*do_discard)(struct se_device *, sector_t, u32);
30 void (*do_sync_cache)(struct se_cmd *);
31 ssize_t (*check_configfs_dev_params)(struct se_hba *, 30 ssize_t (*check_configfs_dev_params)(struct se_hba *,
32 struct se_subsystem_dev *); 31 struct se_subsystem_dev *);
33 ssize_t (*set_configfs_dev_params)(struct se_hba *, 32 ssize_t (*set_configfs_dev_params)(struct se_hba *,
@@ -42,6 +41,7 @@ struct se_subsystem_api {
42 41
43struct spc_ops { 42struct spc_ops {
44 int (*execute_rw)(struct se_cmd *cmd); 43 int (*execute_rw)(struct se_cmd *cmd);
44 int (*execute_sync_cache)(struct se_cmd *cmd);
45}; 45};
46 46
47int transport_subsystem_register(struct se_subsystem_api *); 47int transport_subsystem_register(struct se_subsystem_api *);