|
@@ -205,7 +205,7 @@ static int tcm_loop_new_cmd_map(struct se_cmd *se_cmd)
|
|
/*
|
|
/*
|
|
* Called from struct target_core_fabric_ops->check_stop_free()
|
|
* Called from struct target_core_fabric_ops->check_stop_free()
|
|
*/
|
|
*/
|
|
-static void tcm_loop_check_stop_free(struct se_cmd *se_cmd)
|
|
|
|
|
|
+static int tcm_loop_check_stop_free(struct se_cmd *se_cmd)
|
|
{
|
|
{
|
|
/*
|
|
/*
|
|
* Do not release struct se_cmd's containing a valid TMR
|
|
* Do not release struct se_cmd's containing a valid TMR
|
|
@@ -213,12 +213,13 @@ static void tcm_loop_check_stop_free(struct se_cmd *se_cmd)
|
|
* with transport_generic_free_cmd().
|
|
* with transport_generic_free_cmd().
|
|
*/
|
|
*/
|
|
if (se_cmd->se_tmr_req)
|
|
if (se_cmd->se_tmr_req)
|
|
- return;
|
|
|
|
|
|
+ return 0;
|
|
/*
|
|
/*
|
|
* Release the struct se_cmd, which will make a callback to release
|
|
* Release the struct se_cmd, which will make a callback to release
|
|
* struct tcm_loop_cmd * in tcm_loop_deallocate_core_cmd()
|
|
* struct tcm_loop_cmd * in tcm_loop_deallocate_core_cmd()
|
|
*/
|
|
*/
|
|
transport_generic_free_cmd(se_cmd, 0);
|
|
transport_generic_free_cmd(se_cmd, 0);
|
|
|
|
+ return 1;
|
|
}
|
|
}
|
|
|
|
|
|
static void tcm_loop_release_cmd(struct se_cmd *se_cmd)
|
|
static void tcm_loop_release_cmd(struct se_cmd *se_cmd)
|