target: Move task tag into struct se_cmd + support 64-bit tags
Simplify target core and target drivers by storing the task tag a.k.a. command identifier inside struct se_cmd. For several transports (e.g. SRP) tags are 64 bits wide. Hence add support for 64-bit tags. (Fix core_tmr_abort_task conversion spec warnings - nab) (Fix up usb-gadget to use 16-bit tags - HCH + bart) Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Andy Grover <agrover@redhat.com> Cc: Sagi Grimberg <sagig@mellanox.com> Cc: <qla2xxx-upstream@qlogic.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Juergen Gross <jgross@suse.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:

committed by
Nicholas Bellinger

parent
2650d71e24
commit
649ee05499
@@ -420,7 +420,7 @@ struct se_tmr_req {
|
||||
u8 response;
|
||||
int call_transport;
|
||||
/* Reference to ITT that Task Mgmt should be performed */
|
||||
u32 ref_task_tag;
|
||||
u64 ref_task_tag;
|
||||
void *fabric_tmr_ptr;
|
||||
struct se_cmd *task_cmd;
|
||||
struct se_device *tmr_dev;
|
||||
@@ -473,6 +473,7 @@ struct se_cmd {
|
||||
u8 scsi_asc;
|
||||
u8 scsi_ascq;
|
||||
u16 scsi_sense_length;
|
||||
u64 tag; /* SAM command identifier aka task tag */
|
||||
/* Delay for ALUA Active/NonOptimized state access in milliseconds */
|
||||
int alua_nonop_delay;
|
||||
/* See include/linux/dma-mapping.h */
|
||||
|
@@ -53,7 +53,6 @@ struct target_core_fabric_ops {
|
||||
int (*write_pending)(struct se_cmd *);
|
||||
int (*write_pending_status)(struct se_cmd *);
|
||||
void (*set_default_node_attributes)(struct se_node_acl *);
|
||||
u32 (*get_task_tag)(struct se_cmd *);
|
||||
int (*get_cmd_state)(struct se_cmd *);
|
||||
int (*queue_data_in)(struct se_cmd *);
|
||||
int (*queue_status)(struct se_cmd *);
|
||||
|
Reference in New Issue
Block a user