• Nicholas Bellinger's avatar
    iscsi-target: Add per transport iscsi_cmd alloc/free · cdb72665
    Nicholas Bellinger authored
    This patch converts struct iscsi_cmd memory allocation + free to use
    ->iscsit_alloc_cmd() iscsit_transport API caller, and export
    iscsit_allocate_cmd() symbols
    
    Also add iscsi_cmd->release_cmd() to be used seperately from
    iscsit_transport for connection/session shutdown.
    
    v2 changes:
    
    - Remove unnecessary checks in iscsit_alloc_cmd (asias)
    - Drop iscsit_transport->iscsit_free_cmd() usage
    - Drop iscsit_transport->iscsit_unmap_cmd() usage
    - Add iscsi_cmd->release_cmd()
    - Convert lio_release_cmd() to use iscsi_cmd->release_cmd()
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    cdb72665
iscsi_target_configfs.c 50.4 KB