target: merge transport_new_cmd_obj into transport_generic_new_cmd
authorChristoph Hellwig <hch@infradead.org>
Tue, 18 Oct 2011 10:57:01 +0000 (06:57 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:21:57 +0000 (03:21 +0000)
commitda0f7619913751d45fc3cda652789379f4f435fb
treea719ef4746505d51d13a1997de93ab5466db2687
parent7c1c6af37af69a4ac4a6485c968496d257245b5d
target: merge transport_new_cmd_obj into transport_generic_new_cmd

These are two fairly small functions, and merging them gives a much
more readable control flow, and opportunities for more useful comments.

It also moves all code related to resources allocation closer together
and allows to remove a forward declaration for transport_allocate_tasks.

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