aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/target/iscsi/iscsi_target.c2
-rw-r--r--drivers/target/iscsi/iscsi_target_core.h3
-rw-r--r--drivers/target/target_core_transport.c3
-rw-r--r--include/target/target_core_base.h3
-rw-r--r--include/target/target_core_transport.h7
5 files changed, 4 insertions, 14 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
index d86e18dc163a..4d01768fcd90 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -765,7 +765,7 @@ static int iscsit_allocate_iovecs(struct iscsi_cmd *cmd)
765 u32 iov_count = (cmd->se_cmd.t_data_nents == 0) ? 1 : 765 u32 iov_count = (cmd->se_cmd.t_data_nents == 0) ? 1 :
766 cmd->se_cmd.t_data_nents; 766 cmd->se_cmd.t_data_nents;
767 767
768 iov_count += TRANSPORT_IOV_DATA_BUFFER; 768 iov_count += ISCSI_IOV_DATA_BUFFER;
769 769
770 cmd->iov_data = kzalloc(iov_count * sizeof(struct kvec), GFP_KERNEL); 770 cmd->iov_data = kzalloc(iov_count * sizeof(struct kvec), GFP_KERNEL);
771 if (!cmd->iov_data) { 771 if (!cmd->iov_data) {
diff --git a/drivers/target/iscsi/iscsi_target_core.h b/drivers/target/iscsi/iscsi_target_core.h
index 470ed551eeb5..84818d7a7057 100644
--- a/drivers/target/iscsi/iscsi_target_core.h
+++ b/drivers/target/iscsi/iscsi_target_core.h
@@ -57,6 +57,9 @@
57#define TA_PROD_MODE_WRITE_PROTECT 0 57#define TA_PROD_MODE_WRITE_PROTECT 0
58#define TA_CACHE_CORE_NPS 0 58#define TA_CACHE_CORE_NPS 0
59 59
60
61#define ISCSI_IOV_DATA_BUFFER 5
62
60enum tpg_np_network_transport_table { 63enum tpg_np_network_transport_table {
61 ISCSI_TCP = 0, 64 ISCSI_TCP = 0,
62 ISCSI_SCTP_TCP = 1, 65 ISCSI_SCTP_TCP = 1,
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index ee73f1095a12..89b85dd36cce 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -69,9 +69,6 @@ struct kmem_cache *t10_alua_lu_gp_mem_cache;
69struct kmem_cache *t10_alua_tg_pt_gp_cache; 69struct kmem_cache *t10_alua_tg_pt_gp_cache;
70struct kmem_cache *t10_alua_tg_pt_gp_mem_cache; 70struct kmem_cache *t10_alua_tg_pt_gp_mem_cache;
71 71
72/* Used for transport_dev_get_map_*() */
73typedef int (*map_func_t)(struct se_task *, u32);
74
75static int transport_generic_write_pending(struct se_cmd *); 72static int transport_generic_write_pending(struct se_cmd *);
76static int transport_processing_thread(void *param); 73static int transport_processing_thread(void *param);
77static int __transport_execute_tasks(struct se_device *dev); 74static int __transport_execute_tasks(struct se_device *dev);
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 872cafcb2681..c00224e8d6c4 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -10,10 +10,7 @@
10#include <net/tcp.h> 10#include <net/tcp.h>
11 11
12#define TARGET_CORE_MOD_VERSION "v4.1.0-rc1-ml" 12#define TARGET_CORE_MOD_VERSION "v4.1.0-rc1-ml"
13#define SHUTDOWN_SIGS (sigmask(SIGKILL)|sigmask(SIGINT)|sigmask(SIGABRT))
14 13
15/* Used by transport_generic_allocate_iovecs() */
16#define TRANSPORT_IOV_DATA_BUFFER 5
17/* Maximum Number of LUNs per Target Portal Group */ 14/* Maximum Number of LUNs per Target Portal Group */
18/* Don't raise above 511 or REPORT_LUNS needs to handle >1 page */ 15/* Don't raise above 511 or REPORT_LUNS needs to handle >1 page */
19#define TRANSPORT_MAX_LUNS_PER_TPG 256 16#define TRANSPORT_MAX_LUNS_PER_TPG 256
diff --git a/include/target/target_core_transport.h b/include/target/target_core_transport.h
index c91516910e3e..ccd85b380d6b 100644
--- a/include/target/target_core_transport.h
+++ b/include/target/target_core_transport.h
@@ -110,11 +110,8 @@
110 110
111#define MOD_MAX_SECTORS(ms, bs) (ms % (PAGE_SIZE / bs)) 111#define MOD_MAX_SECTORS(ms, bs) (ms % (PAGE_SIZE / bs))
112 112
113struct se_mem;
114struct se_subsystem_api; 113struct se_subsystem_api;
115 114
116extern struct kmem_cache *se_mem_cache;
117
118extern int init_se_kmem_caches(void); 115extern int init_se_kmem_caches(void);
119extern void release_se_kmem_caches(void); 116extern void release_se_kmem_caches(void);
120extern u32 scsi_get_new_index(scsi_index_t); 117extern u32 scsi_get_new_index(scsi_index_t);
@@ -186,10 +183,6 @@ extern void transport_send_task_abort(struct se_cmd *);
186extern void transport_release_cmd(struct se_cmd *); 183extern void transport_release_cmd(struct se_cmd *);
187extern void transport_generic_free_cmd(struct se_cmd *, int); 184extern void transport_generic_free_cmd(struct se_cmd *, int);
188extern void transport_generic_wait_for_cmds(struct se_cmd *, int); 185extern void transport_generic_wait_for_cmds(struct se_cmd *, int);
189extern int transport_init_task_sg(struct se_task *, struct se_mem *, u32);
190extern int transport_map_mem_to_sg(struct se_task *, struct list_head *,
191 struct scatterlist *, struct se_mem *,
192 struct se_mem **, u32 *, u32 *);
193extern void transport_do_task_sg_chain(struct se_cmd *); 186extern void transport_do_task_sg_chain(struct se_cmd *);
194extern void transport_generic_process_write(struct se_cmd *); 187extern void transport_generic_process_write(struct se_cmd *);
195extern int transport_generic_new_cmd(struct se_cmd *); 188extern int transport_generic_new_cmd(struct se_cmd *);