[SCSI] tgt: move tsk_mgmt_response callback to transport class
This moves tsk_mgmt_response callback in struct scsi_host_template to struct scsi_transport_template since struct scsi_transport_template is more suitable for the task management stuff. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:

committed by
James Bottomley

parent
17b0bcfad7
commit
bfb743740e
@@ -145,9 +145,6 @@ struct scsi_host_template {
|
||||
int (* transfer_response)(struct scsi_cmnd *,
|
||||
void (*done)(struct scsi_cmnd *));
|
||||
|
||||
/* Used as callback for the completion of task management request. */
|
||||
int (* tsk_mgmt_response)(struct Scsi_Host *, u64, u64 mid, int result);
|
||||
|
||||
/*
|
||||
* This is an error handling strategy routine. You don't need to
|
||||
* define one of these if you don't want to - there is a default
|
||||
|
@@ -71,6 +71,12 @@ struct scsi_transport_template {
|
||||
* for target drivers.
|
||||
*/
|
||||
int (* it_nexus_response)(struct Scsi_Host *, u64, int);
|
||||
|
||||
/*
|
||||
* Used as callback for the completion of task management
|
||||
* request for target drivers.
|
||||
*/
|
||||
int (* tsk_mgmt_response)(struct Scsi_Host *, u64, u64, int);
|
||||
};
|
||||
|
||||
#define transport_class_to_shost(tc) \
|
||||
|
@@ -22,6 +22,7 @@ struct srp_rport {
|
||||
|
||||
struct srp_function_template {
|
||||
/* for target drivers */
|
||||
int (* tsk_mgmt_response)(struct Scsi_Host *, u64, u64, int);
|
||||
int (* it_nexus_response)(struct Scsi_Host *, u64, int);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user