mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
target: Drop legacy se_cmd->check_release bit
Now with iscsi-target using modern se_cmd->cmd_kref accounting in v3.10 code, it's safe to go ahead and drop the legacy release codepath + se_cmd->check_release bit in transport_release_cmd() Cc: Christoph Hellwig <[email protected]> Cc: Roland Dreier <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: Or Gerlitz <[email protected]> Cc: Moussa Ba <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
b9da5826df
commit
ca24976ac8
2 changed files with 1 additions and 9 deletions
|
|
@ -1952,11 +1952,7 @@ static int transport_release_cmd(struct se_cmd *cmd)
|
|||
* If this cmd has been setup with target_get_sess_cmd(), drop
|
||||
* the kref and call ->release_cmd() in kref callback.
|
||||
*/
|
||||
if (cmd->check_release != 0)
|
||||
return target_put_sess_cmd(cmd->se_sess, cmd);
|
||||
|
||||
cmd->se_tfo->release_cmd(cmd);
|
||||
return 1;
|
||||
return target_put_sess_cmd(cmd->se_sess, cmd);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -2175,8 +2171,6 @@ int target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd,
|
|||
goto out;
|
||||
}
|
||||
list_add_tail(&se_cmd->se_cmd_list, &se_sess->sess_cmd_list);
|
||||
se_cmd->check_release = 1;
|
||||
|
||||
out:
|
||||
spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue