[SCSI] iscsi: rm kernel iscsi handles usage for session and connection
from hare@suse.de and michaelc@cs.wisc.edu hw iscsi like qla4xxx does not allocate a host per session and for userspace it is difficult to restart iscsid using the "iscsi handles" for the session and connection, so this patch just has the class or userspace allocate the id for the session and connection. Note: this breaks userspace and requires users to upgrade to the newest open-iscsi tools. Sorry about his but open-iscsi is still too new to say we have a stable user-kernel api and we were not good nough designers to know that other hw iscsi drivers and iscsid itself would need such changes. Actually we sorta did but at the time we did not have the HW available to us so we could only guess. Luckily, the only tools hooking into the class are the open-iscsi ones or other tools like iscsitart hook into the open-iscsi engine from userspace or prgroams like anaconda call our tools so they are not affected. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
13f7e5acc8
commit
b5c7a12dc2
@@ -3254,7 +3254,7 @@ static struct iscsi_transport iscsi_tcp_transport;
|
||||
|
||||
static struct iscsi_cls_session *
|
||||
iscsi_session_create(struct scsi_transport_template *scsit,
|
||||
uint32_t initial_cmdsn, uint32_t *sid)
|
||||
uint32_t initial_cmdsn, uint32_t *hostno)
|
||||
{
|
||||
struct Scsi_Host *shost;
|
||||
struct iscsi_session *session;
|
||||
@@ -3274,7 +3274,8 @@ iscsi_session_create(struct scsi_transport_template *scsit,
|
||||
session->exp_cmdsn = initial_cmdsn + 1;
|
||||
session->max_cmdsn = initial_cmdsn + 1;
|
||||
session->max_r2t = 1;
|
||||
*sid = shost->host_no;
|
||||
|
||||
*hostno = shost->host_no;
|
||||
|
||||
/* initialize SCSI PDU commands pool */
|
||||
if (iscsi_pool_init(&session->cmdpool, session->cmds_max,
|
||||
|
Reference in New Issue
Block a user