target: simplify transport_generic_remove
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Sep 2011 21:08:32 +0000 (23:08 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:20:33 +0000 (03:20 +0000)
commitd3df7825aed2e69e12732f9e32ef9093b01302d8
tree582bb19c5eb961945beeae347000c6c4a8d7b896
parent2dbc43d256c5371ebc294e3534620663eb80a5ce
target: simplify transport_generic_remove

Instead of duplicating the code from transport_release_fe_cmd re-use it by
allowing transport_release_fe_cmd to return wether it actually freed the
command or not.  Also rename transport_release_fe_cmd to transport_put_cmd
and add a kerneldoc comment for it to make the use case more obvious.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c