tcm_fc: Convert ft_send_work to use target_submit_cmd
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 23 Nov 2011 05:41:54 +0000 (21:41 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 14 Dec 2011 11:42:08 +0000 (11:42 +0000)
commit4355a9110eeb2eaf1dd44fcab16ccbd1c8c5fad4
tree6cfb4d1fc3cb5c71f67ab158ab41430cfe7a6e0c
parenta63607855224702ea17e6016ecf3f7d544e83625
tcm_fc: Convert ft_send_work to use target_submit_cmd

This patch converts the main ft_send_work() I/O path to use
target_submit_cmd() with a single se_cmd->cmd_kref reference
that is released via the existing ft_check_stop_free() response
path callback.

It also makes ft_send_tm() use transport_init_se_cmd() and
target_get_sess_cmd() to also use single se_cmd->cmd_kref
reference.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/tcm_fc/tfc_cmd.c