pscsi: finish cmd processing from pscsi_req_done
authorMike Christie <mchristi@redhat.com>
Wed, 31 May 2017 20:52:41 +0000 (15:52 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:46 +0000 (23:11 -0700)
commitdce6ce8cfb842c333094c3eb2e3ea66b1edb02ad
tree6cd1003adc146f5deaecaaf1b91190db7c71c961
parent406f74c20dc258f8258b64d16d159c3fff06a506
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>
drivers/target/target_core_pscsi.c
drivers/target/target_core_pscsi.h