[PATCH] [Target_Core_Mod 5/11]: Update struct target_core_fabric_ops

1 view
Skip to first unread message

Nicholas A. Bellinger

unread,
Dec 9, 2008, 10:10:06 PM12/9/08
to Linux-iSCSI.org Target Dev
>From 48a6ebf65d1595e2599ec088e96c6f1d5bc203f2 Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <n...@linux-iscsi.org>
Date: Tue, 9 Dec 2008 18:16:12 -0800
Subject: [PATCH] [Target_Core_Mod]: Update struct target_core_fabric_ops

This patch updates struct target_core_fabric_ops, and adds the following
new function pointers:

write_pending()
get_task_tag()
get_cmd_state()
new_cmd_failure()
queue_data_in()
queue_status()
queue_tm_rsp()
is_state_remove()
pack_lun()

Also, all uses of iscsi_cmd_t now become se_cmd_t.

Signed-off-by: Nicholas A. Bellinger <n...@linux-iscsi.org>
---
drivers/lio-core/target_core_fabric_ops.h | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/drivers/lio-core/target_core_fabric_ops.h b/drivers/lio-core/target_core_fabric_ops.h
index ba9e1f5..1ac2d61 100644
--- a/drivers/lio-core/target_core_fabric_ops.h
+++ b/drivers/lio-core/target_core_fabric_ops.h
@@ -1,12 +1,11 @@
struct target_core_fabric_ops {
- void (*release_cmd_to_pool)(struct iscsi_cmd_s *, struct iscsi_session_s *);
- void (*release_cmd_direct)(struct iscsi_cmd_s *);
+ void (*release_cmd_to_pool)(struct se_cmd_s *);
+ void (*release_cmd_direct)(struct se_cmd_s *);
int (*dev_del_lun)(struct iscsi_portal_group_s *, __u32);
int (*stop_session)(struct iscsi_session_s *, int, int);
void (*fall_back_to_erl0)(struct iscsi_conn_s *);
- void (*add_cmd_to_response_queue)(struct iscsi_cmd_s *, struct iscsi_conn_s *, u8);
- int (*build_r2ts_for_cmd)(struct iscsi_cmd_s *, struct iscsi_conn_s *, int);
- void (*dec_nacl_count)(struct iscsi_node_acl_s *, struct iscsi_cmd_s *);
+ int (*write_pending)(struct se_cmd_s *);
+ void (*dec_nacl_count)(struct iscsi_node_acl_s *, struct se_cmd_s *);
void *(*scsi_auth_intr_seq_start)(struct seq_file *, loff_t *);
void *(*scsi_auth_intr_seq_next)(struct seq_file *, void *, loff_t *);
int (*scsi_auth_intr_seq_show)(struct seq_file *, void *);
@@ -15,4 +14,12 @@ struct target_core_fabric_ops {
void *(*scsi_att_intr_port_seq_next)(struct seq_file *, void *, loff_t *);
int (*scsi_att_intr_port_seq_show)(struct seq_file *, void *);
void (*scsi_att_intr_port_seq_stop)(struct seq_file *, void *);
+ u32 (*get_task_tag)(struct se_cmd_s *);
+ int (*get_cmd_state)(struct se_cmd_s *);
+ void (*new_cmd_failure)(struct se_cmd_s *);
+ int (*queue_data_in)(struct se_cmd_s *);
+ int (*queue_status)(struct se_cmd_s *);
+ int (*queue_tm_rsp)(struct se_cmd_s *);
+ int (*is_state_remove)(struct se_cmd_s *);
+ u64 (*pack_lun)(unsigned int);
};
--
1.5.4.1

Reply all
Reply to author
Forward
0 new messages