]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3890754e132aa7960e3fd0328fd1bebf52f5c59f
tree6cfb4d1fc3cb5c71f67ab158ab41430cfe7a6e0c
parent3237670bd9ae956a44425d654afcde27627947c0
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