target: merge release_cmd methods
authorChristoph Hellwig <hch@infradead.org>
Wed, 1 Jun 2011 03:56:57 +0000 (23:56 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:44 +0000 (09:37 +0000)
commit35462975b2b197b990fedbb74b81f9bea9d344cb
tree72aea1508e81292f7fe7a17b39ed7f59de3dc3ce
parentdb1620a2788f6c470804f6a5f983a0152188bd90
target: merge release_cmd methods

The release_cmd_to_pool and release_cmd_direct methods are always the same.
Merge them into a single release_cmd method, and clean up the fallout.

(nab: fix breakage in transport_generic_free_cmd() parameter build breakage
 in drivers/target/tcm_fc/tfc_cmd.c)

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c
drivers/target/target_core_configfs.c
drivers/target/target_core_transport.c
drivers/target/tcm_fc/tfc_cmd.c
drivers/target/tcm_fc/tfc_conf.c
include/target/target_core_fabric_ops.h
include/target/target_core_transport.h