aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_pscsi.h
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-05-31 15:52:41 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-06 23:11:46 -0700
commitdce6ce8cfb842c333094c3eb2e3ea66b1edb02ad (patch)
tree6cd1003adc146f5deaecaaf1b91190db7c71c961 /drivers/target/target_core_pscsi.h
parenttcmu: fix sense handling during completion (diff)
downloadlinux-dev-dce6ce8cfb842c333094c3eb2e3ea66b1edb02ad.tar.xz
linux-dev-dce6ce8cfb842c333094c3eb2e3ea66b1edb02ad.zip
pscsi: finish cmd processing from pscsi_req_done
This patch performs the pscsi_transport_complete operations from pscsi_req_done. It looks like the only difference the transport_complete callout provides is that it is called under t_state_lock which seems to only be needed for the SCF_TRANSPORT_TASK_SENSE bit handling. We can now use transport_copy_sense_to_cmd to handle the se_cmd sense bits, and we can then drop the code where we have to copy the request info to the pscsi_plugin_task for transport_complete use. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_pscsi.h')
-rw-r--r--drivers/target/target_core_pscsi.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/target/target_core_pscsi.h b/drivers/target/target_core_pscsi.h
index 8a02fa47c7e8..b86fb0e1b783 100644
--- a/drivers/target/target_core_pscsi.h
+++ b/drivers/target/target_core_pscsi.h
@@ -23,10 +23,6 @@ struct scsi_device;
struct Scsi_Host;
struct pscsi_plugin_task {
- unsigned char pscsi_sense[TRANSPORT_SENSE_BUFFER];
- int pscsi_direction;
- int pscsi_result;
- u32 pscsi_resid;
unsigned char pscsi_cdb[0];
} ____cacheline_aligned;