diff options
Diffstat (limited to 'include/target/target_core_base.h')
-rw-r--r-- | include/target/target_core_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 3313b7d91ac8..4a26a18a24d6 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -159,6 +159,8 @@ enum se_cmd_flags_table { | |||
159 | SCF_ALUA_NON_OPTIMIZED = 0x00008000, | 159 | SCF_ALUA_NON_OPTIMIZED = 0x00008000, |
160 | SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC = 0x00020000, | 160 | SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC = 0x00020000, |
161 | SCF_ACK_KREF = 0x00040000, | 161 | SCF_ACK_KREF = 0x00040000, |
162 | SCF_COMPARE_AND_WRITE = 0x00080000, | ||
163 | SCF_COMPARE_AND_WRITE_POST = 0x00100000, | ||
162 | }; | 164 | }; |
163 | 165 | ||
164 | /* struct se_dev_entry->lun_flags and struct se_lun->lun_access */ | 166 | /* struct se_dev_entry->lun_flags and struct se_lun->lun_access */ |
@@ -448,11 +450,14 @@ struct se_cmd { | |||
448 | struct kref cmd_kref; | 450 | struct kref cmd_kref; |
449 | struct target_core_fabric_ops *se_tfo; | 451 | struct target_core_fabric_ops *se_tfo; |
450 | sense_reason_t (*execute_cmd)(struct se_cmd *); | 452 | sense_reason_t (*execute_cmd)(struct se_cmd *); |
453 | sense_reason_t (*execute_rw)(struct se_cmd *, struct scatterlist *, | ||
454 | u32, enum dma_data_direction); | ||
451 | sense_reason_t (*transport_complete_callback)(struct se_cmd *); | 455 | sense_reason_t (*transport_complete_callback)(struct se_cmd *); |
452 | 456 | ||
453 | unsigned char *t_task_cdb; | 457 | unsigned char *t_task_cdb; |
454 | unsigned char __t_task_cdb[TCM_MAX_COMMAND_SIZE]; | 458 | unsigned char __t_task_cdb[TCM_MAX_COMMAND_SIZE]; |
455 | unsigned long long t_task_lba; | 459 | unsigned long long t_task_lba; |
460 | unsigned int t_task_nolb; | ||
456 | unsigned int transport_state; | 461 | unsigned int transport_state; |
457 | #define CMD_T_ABORTED (1 << 0) | 462 | #define CMD_T_ABORTED (1 << 0) |
458 | #define CMD_T_ACTIVE (1 << 1) | 463 | #define CMD_T_ACTIVE (1 << 1) |