diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-14 07:30:17 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-10-23 23:21:31 -0400 |
commit | f55918fa3202a646dad2404f7de008108edc5048 (patch) | |
tree | 6b39361985ad31ce9511763e504dfdf89e92412b /include/target | |
parent | df5fa691ce61aedd3e4dbcf960ee44f05b797d8b (diff) |
target: clean up the backend interface to caching parameters
Remove the dpo_emulated, fua_write_emulated, fua_read_emulated and
write_cache_emulated methods, and replace them with a simple bitfields in
se_subsystem_api in those cases where they ever returned one.
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_transport.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/include/target/target_core_transport.h b/include/target/target_core_transport.h index 171c2359bc79..9c7e32870f87 100644 --- a/include/target/target_core_transport.h +++ b/include/target/target_core_transport.h | |||
@@ -218,6 +218,10 @@ struct se_subsystem_api { | |||
218 | * Transport Type. | 218 | * Transport Type. |
219 | */ | 219 | */ |
220 | u8 transport_type; | 220 | u8 transport_type; |
221 | |||
222 | unsigned int fua_write_emulated : 1; | ||
223 | unsigned int write_cache_emulated : 1; | ||
224 | |||
221 | /* | 225 | /* |
222 | * struct module for struct se_hba references | 226 | * struct module for struct se_hba references |
223 | */ | 227 | */ |
@@ -254,22 +258,6 @@ struct se_subsystem_api { | |||
254 | void (*free_device)(void *); | 258 | void (*free_device)(void *); |
255 | 259 | ||
256 | /* | 260 | /* |
257 | * dpo_emulated(): | ||
258 | */ | ||
259 | int (*dpo_emulated)(struct se_device *); | ||
260 | /* | ||
261 | * fua_write_emulated(): | ||
262 | */ | ||
263 | int (*fua_write_emulated)(struct se_device *); | ||
264 | /* | ||
265 | * fua_read_emulated(): | ||
266 | */ | ||
267 | int (*fua_read_emulated)(struct se_device *); | ||
268 | /* | ||
269 | * write_cache_emulated(): | ||
270 | */ | ||
271 | int (*write_cache_emulated)(struct se_device *); | ||
272 | /* | ||
273 | * transport_complete(): | 261 | * transport_complete(): |
274 | * | 262 | * |
275 | * Use transport_generic_complete() for majority of DAS transport | 263 | * Use transport_generic_complete() for majority of DAS transport |