Skip to content

Commit 20361e6

Browse files
author
Nicholas Bellinger
committed
target: Add export of target_get_sess_cmd symbol
Export target_get_sess_cmd() symbol so that it can be used by iscsi-target. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent ad67328 commit 20361e6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/target/target_core_transport.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ static void transport_complete_task_attr(struct se_cmd *cmd);
6565
static void transport_handle_queue_full(struct se_cmd *cmd,
6666
struct se_device *dev);
6767
static int transport_generic_get_mem(struct se_cmd *cmd);
68-
static int target_get_sess_cmd(struct se_session *, struct se_cmd *, bool);
6968
static void transport_put_cmd(struct se_cmd *cmd);
7069
static void target_complete_ok_work(struct work_struct *work);
7170

@@ -2179,7 +2178,7 @@ EXPORT_SYMBOL(transport_generic_free_cmd);
21792178
* @se_cmd: command descriptor to add
21802179
* @ack_kref: Signal that fabric will perform an ack target_put_sess_cmd()
21812180
*/
2182-
static int target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd,
2181+
int target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd,
21832182
bool ack_kref)
21842183
{
21852184
unsigned long flags;
@@ -2208,6 +2207,7 @@ static int target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd
22082207
spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags);
22092208
return ret;
22102209
}
2210+
EXPORT_SYMBOL(target_get_sess_cmd);
22112211

22122212
static void target_release_cmd_kref(struct kref *kref)
22132213
{

‎include/target/target_core_fabric.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ bool transport_wait_for_tasks(struct se_cmd *);
120120
int transport_check_aborted_status(struct se_cmd *, int);
121121
int transport_send_check_condition_and_sense(struct se_cmd *,
122122
sense_reason_t, int);
123-
123+
int target_get_sess_cmd(struct se_session *, struct se_cmd *, bool);
124124
int target_put_sess_cmd(struct se_session *, struct se_cmd *);
125125
void target_sess_cmd_list_set_waiting(struct se_session *);
126126
void target_wait_for_sess_cmds(struct se_session *, int);

0 commit comments

Comments
 (0)