diff options
author | Jayamohan Kallickal <jayamohank@serverengines.com> | 2009-09-21 22:51:22 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-10-02 15:01:39 -0400 |
commit | b8b9e1b8128d8854cf55740f9ceba3010143520d (patch) | |
tree | b4043ea1ac0d8bd8602628fcb48ffac7ffe8bdbf /drivers/scsi/be2iscsi | |
parent | 6733b39a1301b0b020bbcbf3295852e93e624cb1 (diff) |
[SCSI] libiscsi: iscsi_session_setup to allow for private space
This patch contains changes that allow iscsi_session_setup
to allocate private space for LLD's
Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
Acked-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_iscsi.c | 6 | ||||
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.h | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index b23526cb39d7..f18e643f3589 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c | |||
@@ -44,9 +44,10 @@ struct iscsi_cls_session *beiscsi_session_create(struct iscsi_endpoint *ep, | |||
44 | struct Scsi_Host *shost; | 44 | struct Scsi_Host *shost; |
45 | struct beiscsi_endpoint *beiscsi_ep; | 45 | struct beiscsi_endpoint *beiscsi_ep; |
46 | struct iscsi_cls_session *cls_session; | 46 | struct iscsi_cls_session *cls_session; |
47 | struct iscsi_session *sess; | ||
48 | struct beiscsi_hba *phba; | 47 | struct beiscsi_hba *phba; |
49 | struct iscsi_task *task; | 48 | struct iscsi_task *task; |
49 | struct iscsi_session *sess; | ||
50 | struct beiscsi_session *beiscsi_sess; | ||
50 | struct beiscsi_io_task *io_task; | 51 | struct beiscsi_io_task *io_task; |
51 | unsigned int max_size, num_cmd; | 52 | unsigned int max_size, num_cmd; |
52 | dma_addr_t bus_add; | 53 | dma_addr_t bus_add; |
@@ -73,7 +74,8 @@ struct iscsi_cls_session *beiscsi_session_create(struct iscsi_endpoint *ep, | |||
73 | 74 | ||
74 | cls_session = iscsi_session_setup(&beiscsi_iscsi_transport, | 75 | cls_session = iscsi_session_setup(&beiscsi_iscsi_transport, |
75 | shost, cmds_max, | 76 | shost, cmds_max, |
76 | sizeof(struct beiscsi_io_task), | 77 | sizeof(*beiscsi_sess), |
78 | sizeof(*io_task), | ||
77 | initial_cmdsn, ISCSI_MAX_TARGET); | 79 | initial_cmdsn, ISCSI_MAX_TARGET); |
78 | if (!cls_session) | 80 | if (!cls_session) |
79 | return NULL; | 81 | return NULL; |
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index 2520c39c594d..387e363b0ec7 100644 --- a/drivers/scsi/be2iscsi/be_main.h +++ b/drivers/scsi/be2iscsi/be_main.h | |||
@@ -327,6 +327,10 @@ struct beiscsi_hba { | |||
327 | struct be_ctrl_info ctrl; | 327 | struct be_ctrl_info ctrl; |
328 | }; | 328 | }; |
329 | 329 | ||
330 | struct beiscsi_session { | ||
331 | struct pci_pool *bhs_pool; | ||
332 | }; | ||
333 | |||
330 | /** | 334 | /** |
331 | * struct beiscsi_conn - iscsi connection structure | 335 | * struct beiscsi_conn - iscsi connection structure |
332 | */ | 336 | */ |
@@ -338,6 +342,7 @@ struct beiscsi_conn { | |||
338 | struct beiscsi_endpoint *ep; | 342 | struct beiscsi_endpoint *ep; |
339 | unsigned short login_in_progress; | 343 | unsigned short login_in_progress; |
340 | struct sgl_handle *plogin_sgl_handle; | 344 | struct sgl_handle *plogin_sgl_handle; |
345 | struct beiscsi_session *beiscsi_sess; | ||
341 | }; | 346 | }; |
342 | 347 | ||
343 | /* This structure is used by the chip */ | 348 | /* This structure is used by the chip */ |