diff options
Diffstat (limited to 'drivers/scsi/iscsi_tcp.h')
-rw-r--r-- | drivers/scsi/iscsi_tcp.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/scsi/iscsi_tcp.h b/drivers/scsi/iscsi_tcp.h index d23ae68fae0d..f95e61b76f70 100644 --- a/drivers/scsi/iscsi_tcp.h +++ b/drivers/scsi/iscsi_tcp.h | |||
@@ -71,7 +71,8 @@ | |||
71 | #define ISCSI_MGMT_CMDS_MAX 32 /* must be power of 2 */ | 71 | #define ISCSI_MGMT_CMDS_MAX 32 /* must be power of 2 */ |
72 | #define ISCSI_MGMT_ITT_OFFSET 0xa00 | 72 | #define ISCSI_MGMT_ITT_OFFSET 0xa00 |
73 | #define ISCSI_SG_TABLESIZE SG_ALL | 73 | #define ISCSI_SG_TABLESIZE SG_ALL |
74 | #define ISCSI_CMD_PER_LUN 128 | 74 | #define ISCSI_DEF_CMD_PER_LUN 32 |
75 | #define ISCSI_MAX_CMD_PER_LUN 128 | ||
75 | #define ISCSI_TCP_MAX_CMD_LEN 16 | 76 | #define ISCSI_TCP_MAX_CMD_LEN 16 |
76 | 77 | ||
77 | #define ITT_MASK (0xfff) | 78 | #define ITT_MASK (0xfff) |
@@ -157,7 +158,7 @@ struct iscsi_conn { | |||
157 | struct kfifo *mgmtqueue; /* mgmt (control) xmit queue */ | 158 | struct kfifo *mgmtqueue; /* mgmt (control) xmit queue */ |
158 | struct kfifo *xmitqueue; /* data-path cmd queue */ | 159 | struct kfifo *xmitqueue; /* data-path cmd queue */ |
159 | struct work_struct xmitwork; /* per-conn. xmit workqueue */ | 160 | struct work_struct xmitwork; /* per-conn. xmit workqueue */ |
160 | struct semaphore xmitsema; /* serializes connection xmit, | 161 | struct mutex xmitmutex; /* serializes connection xmit, |
161 | * access to kfifos: * | 162 | * access to kfifos: * |
162 | * xmitqueue, writequeue, * | 163 | * xmitqueue, writequeue, * |
163 | * immqueue, mgmtqueue */ | 164 | * immqueue, mgmtqueue */ |
@@ -190,6 +191,8 @@ struct iscsi_conn { | |||
190 | uint32_t sendpage_failures_cnt; | 191 | uint32_t sendpage_failures_cnt; |
191 | uint32_t discontiguous_hdr_cnt; | 192 | uint32_t discontiguous_hdr_cnt; |
192 | uint32_t eh_abort_cnt; | 193 | uint32_t eh_abort_cnt; |
194 | |||
195 | ssize_t (*sendpage)(struct socket *, struct page *, int, size_t, int); | ||
193 | }; | 196 | }; |
194 | 197 | ||
195 | struct iscsi_session { | 198 | struct iscsi_session { |
@@ -239,8 +242,8 @@ struct iscsi_session { | |||
239 | 242 | ||
240 | struct iscsi_buf { | 243 | struct iscsi_buf { |
241 | struct scatterlist sg; | 244 | struct scatterlist sg; |
242 | struct kvec iov; | ||
243 | unsigned int sent; | 245 | unsigned int sent; |
246 | char use_sendmsg; | ||
244 | }; | 247 | }; |
245 | 248 | ||
246 | struct iscsi_data_task { | 249 | struct iscsi_data_task { |