aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2012-07-16 14:04:37 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-07-16 20:35:25 -0400
commit669ab62c9d045bd2ff647f39e9e7a088e7e8706a (patch)
treeb4b10367aa41167ae48b00b9589abacc076987b8 /drivers/target
parentb46e34a6721cb057702f19ebe27cfc7877e500e5 (diff)
target: Un-export target_get_sess_cmd()
There are no in-tree users of target_get_sess_cmd() outside of target_core_transport.c. Any new code should use the higher-level target_submit_cmd() interface. So let's un-export target_get_sess_cmd() and make it static to the one file where it's actually used. (nab: Fix up minor fuzz to for-next) Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_transport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index 45ed170f9151..7b8543480e5f 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -70,6 +70,7 @@ static void transport_complete_task_attr(struct se_cmd *cmd);
70static void transport_handle_queue_full(struct se_cmd *cmd, 70static void transport_handle_queue_full(struct se_cmd *cmd,
71 struct se_device *dev); 71 struct se_device *dev);
72static int transport_generic_get_mem(struct se_cmd *cmd); 72static int transport_generic_get_mem(struct se_cmd *cmd);
73static void target_get_sess_cmd(struct se_session *, struct se_cmd *, bool);
73static void transport_put_cmd(struct se_cmd *cmd); 74static void transport_put_cmd(struct se_cmd *cmd);
74static int transport_set_sense_codes(struct se_cmd *cmd, u8 asc, u8 ascq); 75static int transport_set_sense_codes(struct se_cmd *cmd, u8 asc, u8 ascq);
75static void target_complete_ok_work(struct work_struct *work); 76static void target_complete_ok_work(struct work_struct *work);
@@ -2408,8 +2409,8 @@ EXPORT_SYMBOL(transport_generic_free_cmd);
2408 * @se_cmd: command descriptor to add 2409 * @se_cmd: command descriptor to add
2409 * @ack_kref: Signal that fabric will perform an ack target_put_sess_cmd() 2410 * @ack_kref: Signal that fabric will perform an ack target_put_sess_cmd()
2410 */ 2411 */
2411void target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd, 2412static void target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd,
2412 bool ack_kref) 2413 bool ack_kref)
2413{ 2414{
2414 unsigned long flags; 2415 unsigned long flags;
2415 2416
@@ -2429,7 +2430,6 @@ void target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd,
2429 se_cmd->check_release = 1; 2430 se_cmd->check_release = 1;
2430 spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); 2431 spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags);
2431} 2432}
2432EXPORT_SYMBOL(target_get_sess_cmd);
2433 2433
2434static void target_release_cmd_kref(struct kref *kref) 2434static void target_release_cmd_kref(struct kref *kref)
2435{ 2435{