diff options
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 7360e1916e75..7ffaed2f94dd 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -45,18 +45,10 @@ struct iscsi_session; | |||
45 | struct iscsi_nopin; | 45 | struct iscsi_nopin; |
46 | struct device; | 46 | struct device; |
47 | 47 | ||
48 | /* #define DEBUG_SCSI */ | ||
49 | #ifdef DEBUG_SCSI | ||
50 | #define debug_scsi(fmt...) printk(KERN_INFO "iscsi: " fmt) | ||
51 | #else | ||
52 | #define debug_scsi(fmt...) | ||
53 | #endif | ||
54 | |||
55 | #define ISCSI_DEF_XMIT_CMDS_MAX 128 /* must be power of 2 */ | 48 | #define ISCSI_DEF_XMIT_CMDS_MAX 128 /* must be power of 2 */ |
56 | #define ISCSI_MGMT_CMDS_MAX 15 | 49 | #define ISCSI_MGMT_CMDS_MAX 15 |
57 | 50 | ||
58 | #define ISCSI_DEF_CMD_PER_LUN 32 | 51 | #define ISCSI_DEF_CMD_PER_LUN 32 |
59 | #define ISCSI_MAX_CMD_PER_LUN 128 | ||
60 | 52 | ||
61 | /* Task Mgmt states */ | 53 | /* Task Mgmt states */ |
62 | enum { | 54 | enum { |
@@ -326,6 +318,9 @@ struct iscsi_host { | |||
326 | spinlock_t lock; | 318 | spinlock_t lock; |
327 | int num_sessions; | 319 | int num_sessions; |
328 | int state; | 320 | int state; |
321 | |||
322 | struct workqueue_struct *workq; | ||
323 | char workq_name[20]; | ||
329 | }; | 324 | }; |
330 | 325 | ||
331 | /* | 326 | /* |
@@ -351,7 +346,8 @@ extern int iscsi_host_get_param(struct Scsi_Host *shost, | |||
351 | enum iscsi_host_param param, char *buf); | 346 | enum iscsi_host_param param, char *buf); |
352 | extern int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev); | 347 | extern int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev); |
353 | extern struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht, | 348 | extern struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht, |
354 | int dd_data_size, uint16_t qdepth); | 349 | int dd_data_size, |
350 | bool xmit_can_sleep); | ||
355 | extern void iscsi_host_remove(struct Scsi_Host *shost); | 351 | extern void iscsi_host_remove(struct Scsi_Host *shost); |
356 | extern void iscsi_host_free(struct Scsi_Host *shost); | 352 | extern void iscsi_host_free(struct Scsi_Host *shost); |
357 | 353 | ||
@@ -382,11 +378,12 @@ extern void iscsi_conn_stop(struct iscsi_cls_conn *, int); | |||
382 | extern int iscsi_conn_bind(struct iscsi_cls_session *, struct iscsi_cls_conn *, | 378 | extern int iscsi_conn_bind(struct iscsi_cls_session *, struct iscsi_cls_conn *, |
383 | int); | 379 | int); |
384 | extern void iscsi_conn_failure(struct iscsi_conn *conn, enum iscsi_err err); | 380 | extern void iscsi_conn_failure(struct iscsi_conn *conn, enum iscsi_err err); |
385 | extern void iscsi_session_failure(struct iscsi_cls_session *cls_session, | 381 | extern void iscsi_session_failure(struct iscsi_session *session, |
386 | enum iscsi_err err); | 382 | enum iscsi_err err); |
387 | extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn, | 383 | extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn, |
388 | enum iscsi_param param, char *buf); | 384 | enum iscsi_param param, char *buf); |
389 | extern void iscsi_suspend_tx(struct iscsi_conn *conn); | 385 | extern void iscsi_suspend_tx(struct iscsi_conn *conn); |
386 | extern void iscsi_conn_queue_work(struct iscsi_conn *conn); | ||
390 | 387 | ||
391 | #define iscsi_conn_printk(prefix, _c, fmt, a...) \ | 388 | #define iscsi_conn_printk(prefix, _c, fmt, a...) \ |
392 | iscsi_cls_conn_printk(prefix, ((struct iscsi_conn *)_c)->cls_conn, \ | 389 | iscsi_cls_conn_printk(prefix, ((struct iscsi_conn *)_c)->cls_conn, \ |