diff options
author | Andy Grover <agrover@redhat.com> | 2015-05-19 17:44:40 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-30 22:57:59 -0400 |
commit | 7bfea53b5c936d706d0bf60ec218fa72cde77121 (patch) | |
tree | 1bed6667ac527acab7c2b2fb72e2bb1aa7b4cca5 /include/target | |
parent | 9c1cd1b68cd15c81d12a0cf2402129475882b620 (diff) |
target: Move passthrough CDB parsing into a common function
Aside from whether they handle BIDI ops or not, parsing of the CDB by
kernel and user SCSI passthrough modules should be identical. Move this
into a new passthrough_parse_cdb() and call it from tcm-pscsi and tcm-user.
Reported-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ilias Tsitsimpis <iliastsi@arrikto.com>
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/target/target_core_backend.h b/include/target/target_core_backend.h index d61be7297b2c..563e11970152 100644 --- a/include/target/target_core_backend.h +++ b/include/target/target_core_backend.h | |||
@@ -138,5 +138,7 @@ int se_dev_set_queue_depth(struct se_device *, u32); | |||
138 | int se_dev_set_max_sectors(struct se_device *, u32); | 138 | int se_dev_set_max_sectors(struct se_device *, u32); |
139 | int se_dev_set_optimal_sectors(struct se_device *, u32); | 139 | int se_dev_set_optimal_sectors(struct se_device *, u32); |
140 | int se_dev_set_block_size(struct se_device *, u32); | 140 | int se_dev_set_block_size(struct se_device *, u32); |
141 | sense_reason_t passthrough_parse_cdb(struct se_cmd *cmd, | ||
142 | sense_reason_t (*exec_cmd)(struct se_cmd *cmd)); | ||
141 | 143 | ||
142 | #endif /* TARGET_CORE_BACKEND_H */ | 144 | #endif /* TARGET_CORE_BACKEND_H */ |