|
@@ -2221,16 +2221,16 @@ static int srpt_cm_req_recv(struct srpt_device *const sdev,
|
|
|
pr_debug("registering session %s\n", ch->sess_name);
|
|
|
|
|
|
if (sport->port_guid_tpg.se_tpg_wwn)
|
|
|
- ch->sess = target_alloc_session(&sport->port_guid_tpg, 0, 0,
|
|
|
+ ch->sess = target_setup_session(&sport->port_guid_tpg, 0, 0,
|
|
|
TARGET_PROT_NORMAL,
|
|
|
ch->sess_name, ch, NULL);
|
|
|
if (sport->port_gid_tpg.se_tpg_wwn && IS_ERR_OR_NULL(ch->sess))
|
|
|
- ch->sess = target_alloc_session(&sport->port_gid_tpg, 0, 0,
|
|
|
+ ch->sess = target_setup_session(&sport->port_gid_tpg, 0, 0,
|
|
|
TARGET_PROT_NORMAL, i_port_id, ch,
|
|
|
NULL);
|
|
|
/* Retry without leading "0x" */
|
|
|
if (sport->port_gid_tpg.se_tpg_wwn && IS_ERR_OR_NULL(ch->sess))
|
|
|
- ch->sess = target_alloc_session(&sport->port_gid_tpg, 0, 0,
|
|
|
+ ch->sess = target_setup_session(&sport->port_gid_tpg, 0, 0,
|
|
|
TARGET_PROT_NORMAL,
|
|
|
i_port_id + 2, ch, NULL);
|
|
|
if (IS_ERR_OR_NULL(ch->sess)) {
|