]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ce6a842a5128268e012abcb3295d3363d9909b6
treea719ef4746505d51d13a1997de93ab5466db2687
parentb803114b74f210c61b142f6e7abdc73f57918a94
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