diff options
Diffstat (limited to 'drivers/target/loopback/tcm_loop.c')
| -rw-r--r-- | drivers/target/loopback/tcm_loop.c | 15 | 
1 files changed, 5 insertions, 10 deletions
| diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 60d5b918c4ac..bc8918f382e4 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c @@ -239,10 +239,7 @@ out:  	return ret;  release: -	if (se_cmd) -		transport_generic_free_cmd(se_cmd, 0); -	else -		kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); +	kmem_cache_free(tcm_loop_cmd_cache, tl_cmd);  	goto out;  } @@ -768,7 +765,7 @@ static int tcm_loop_make_nexus(  	if (!tl_nexus)  		return -ENOMEM; -	tl_nexus->se_sess = target_alloc_session(&tl_tpg->tl_se_tpg, 0, 0, +	tl_nexus->se_sess = target_setup_session(&tl_tpg->tl_se_tpg, 0, 0,  					TARGET_PROT_DIN_PASS | TARGET_PROT_DOUT_PASS,  					name, tl_nexus, tcm_loop_alloc_sess_cb);  	if (IS_ERR(tl_nexus->se_sess)) { @@ -808,7 +805,7 @@ static int tcm_loop_drop_nexus(  	/*  	 * Release the SCSI I_T Nexus to the emulated Target Port  	 */ -	transport_deregister_session(tl_nexus->se_sess); +	target_remove_session(se_sess);  	tpg->tl_nexus = NULL;  	kfree(tl_nexus);  	return 0; @@ -983,10 +980,8 @@ static struct configfs_attribute *tcm_loop_tpg_attrs[] = {  /* Start items for tcm_loop_naa_cit */ -static struct se_portal_group *tcm_loop_make_naa_tpg( -	struct se_wwn *wwn, -	struct config_group *group, -	const char *name) +static struct se_portal_group *tcm_loop_make_naa_tpg(struct se_wwn *wwn, +						     const char *name)  {  	struct tcm_loop_hba *tl_hba = container_of(wwn,  			struct tcm_loop_hba, tl_hba_wwn); |