diff options
-rw-r--r-- | drivers/target/target_core_transport.c | 4 | ||||
-rw-r--r-- | include/target/target_core_fabric.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 493e9e589059..f8388b4024aa 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -65,7 +65,6 @@ static void transport_complete_task_attr(struct se_cmd *cmd); | |||
65 | static void transport_handle_queue_full(struct se_cmd *cmd, | 65 | static void transport_handle_queue_full(struct se_cmd *cmd, |
66 | struct se_device *dev); | 66 | struct se_device *dev); |
67 | static int transport_generic_get_mem(struct se_cmd *cmd); | 67 | static int transport_generic_get_mem(struct se_cmd *cmd); |
68 | static int target_get_sess_cmd(struct se_session *, struct se_cmd *, bool); | ||
69 | static void transport_put_cmd(struct se_cmd *cmd); | 68 | static void transport_put_cmd(struct se_cmd *cmd); |
70 | static void target_complete_ok_work(struct work_struct *work); | 69 | static void target_complete_ok_work(struct work_struct *work); |
71 | 70 | ||
@@ -2179,7 +2178,7 @@ EXPORT_SYMBOL(transport_generic_free_cmd); | |||
2179 | * @se_cmd: command descriptor to add | 2178 | * @se_cmd: command descriptor to add |
2180 | * @ack_kref: Signal that fabric will perform an ack target_put_sess_cmd() | 2179 | * @ack_kref: Signal that fabric will perform an ack target_put_sess_cmd() |
2181 | */ | 2180 | */ |
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, |
2183 | bool ack_kref) | 2182 | bool ack_kref) |
2184 | { | 2183 | { |
2185 | unsigned long flags; | 2184 | unsigned long flags; |
@@ -2208,6 +2207,7 @@ out: | |||
2208 | spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); | 2207 | spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); |
2209 | return ret; | 2208 | return ret; |
2210 | } | 2209 | } |
2210 | EXPORT_SYMBOL(target_get_sess_cmd); | ||
2211 | 2211 | ||
2212 | static void target_release_cmd_kref(struct kref *kref) | 2212 | static void target_release_cmd_kref(struct kref *kref) |
2213 | { | 2213 | { |
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index aaa1ee6ab391..ba3471b73c07 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h | |||
@@ -120,7 +120,7 @@ bool transport_wait_for_tasks(struct se_cmd *); | |||
120 | int transport_check_aborted_status(struct se_cmd *, int); | 120 | int transport_check_aborted_status(struct se_cmd *, int); |
121 | int transport_send_check_condition_and_sense(struct se_cmd *, | 121 | int transport_send_check_condition_and_sense(struct se_cmd *, |
122 | sense_reason_t, int); | 122 | sense_reason_t, int); |
123 | 123 | int target_get_sess_cmd(struct se_session *, struct se_cmd *, bool); | |
124 | int target_put_sess_cmd(struct se_session *, struct se_cmd *); | 124 | int target_put_sess_cmd(struct se_session *, struct se_cmd *); |
125 | void target_sess_cmd_list_set_waiting(struct se_session *); | 125 | void target_sess_cmd_list_set_waiting(struct se_session *); |
126 | void target_wait_for_sess_cmds(struct se_session *, int); | 126 | void target_wait_for_sess_cmds(struct se_session *, int); |