Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -3
+2 -2
drivers/target/target_core_transport.c
··· 65 65 static void transport_handle_queue_full(struct se_cmd *cmd, 66 66 struct se_device *dev); 67 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 68 static void transport_put_cmd(struct se_cmd *cmd); 70 69 static void target_complete_ok_work(struct work_struct *work); 71 70 ··· 2178 2179 * @se_cmd: command descriptor to add 2179 2180 * @ack_kref: Signal that fabric will perform an ack target_put_sess_cmd() 2180 2181 */ 2181 - static int target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd, 2182 + int target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd, 2182 2183 bool ack_kref) 2183 2184 { 2184 2185 unsigned long flags; ··· 2207 2208 spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); 2208 2209 return ret; 2209 2210 } 2211 + EXPORT_SYMBOL(target_get_sess_cmd); 2210 2212 2211 2213 static void target_release_cmd_kref(struct kref *kref) 2212 2214 {
+1 -1
include/target/target_core_fabric.h
··· 120 120 int transport_check_aborted_status(struct se_cmd *, int); 121 121 int transport_send_check_condition_and_sense(struct se_cmd *, 122 122 sense_reason_t, int); 123 - 123 + int target_get_sess_cmd(struct se_session *, struct se_cmd *, bool); 124 124 int target_put_sess_cmd(struct se_session *, struct se_cmd *); 125 125 void target_sess_cmd_list_set_waiting(struct se_session *); 126 126 void target_wait_for_sess_cmds(struct se_session *, int);