lkml.org 
[lkml]   [2008]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 1/8] [Target_Core_Mod]: Add EXPORT_SYMBOL() to transport_release_cmd_to_pool()
    From
    Date
    >From e55f26fb1dfd4e549208297d66735bcd80a4ffac Mon Sep 17 00:00:00 2001
    From: Nicholas Bellinger <nab@linux-iscsi.org>
    Date: Sat, 20 Dec 2008 02:00:16 -0800
    Subject: [PATCH 1/8] [Target_Core_Mod]: Add EXPORT_SYMBOL() to transport_release_cmd_to_pool()

    This patch exports transport_release_cmd_to_pool() for transport core, which
    is intended to be used by $FABRIC_MODs for release se_cmd_t, along with the
    already exported transport_generic_free_cmd().

    Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
    ---
    drivers/lio-core/target_core_transport.c | 5 +++--
    drivers/lio-core/target_core_transport.h | 1 +
    2 files changed, 4 insertions(+), 2 deletions(-)

    diff --git a/drivers/lio-core/target_core_transport.c b/drivers/lio-core/target_core_transport.c
    index 9866584..ed042eb 100644
    --- a/drivers/lio-core/target_core_transport.c
    +++ b/drivers/lio-core/target_core_transport.c
    @@ -214,7 +214,6 @@ struct kmem_cache *se_sess_cache = NULL;

    EXPORT_SYMBOL(se_global);
    extern int iscsi_release_sessions_for_tpg (iscsi_portal_group_t *, int);
    -static void transport_release_cmd_to_pool (se_cmd_t *);
    static int transport_generic_write_pending (se_cmd_t *);
    static int transport_processing_thread (void *);

    @@ -5930,7 +5929,7 @@ static int transport_generic_write_pending (se_cmd_t *cmd)
    *
    *
    */
    -static void transport_release_cmd_to_pool (se_cmd_t *cmd)
    +extern void transport_release_cmd_to_pool (se_cmd_t *cmd)
    {
    if (cmd->se_cmd_flags & SCF_CMD_PASSTHROUGH)
    kfree(cmd->se_lun);
    @@ -5943,6 +5942,8 @@ static void transport_release_cmd_to_pool (se_cmd_t *cmd)
    return;
    }

    +EXPORT_SYMBOL(transport_release_cmd_to_pool);
    +
    /* transport_generic_free_cmd():
    *
    * Called from processing frontend to release storage engine resources
    diff --git a/drivers/lio-core/target_core_transport.h b/drivers/lio-core/target_core_transport.h
    index dce7bd6..9c989bd 100644
    --- a/drivers/lio-core/target_core_transport.h
    +++ b/drivers/lio-core/target_core_transport.h
    @@ -182,6 +182,7 @@ extern int iscsi_send_check_condition_and_sense (se_cmd_t *, __u8, int);
    extern int core_tpg_persistent_reservation_check (se_cmd_t *);
    extern int core_tpg_persistent_reservation_release (se_cmd_t *);
    extern int core_tpg_persistent_reservation_reserve (se_cmd_t *);
    +extern void transport_release_cmd_to_pool (se_cmd_t *);
    extern void transport_generic_free_cmd (se_cmd_t *, int, int, int);
    extern void transport_generic_wait_for_cmds (se_cmd_t *, int);
    extern int transport_generic_do_transform (struct se_cmd_s *, struct se_transform_info_s *);
    --
    1.5.4.1




    \
     
     \ /
      Last update: 2008-12-21 00:03    [W:0.034 / U:1.560 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site