target: re-use the command S/G list for single-task commands
authorChristoph Hellwig <hch@infradead.org>
Tue, 18 Oct 2011 10:57:03 +0000 (06:57 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:22:04 +0000 (03:22 +0000)
commitaf3f00c75949369d937f499f49118e879939724d
tree97be6b877cd80489eb055ccf1dd0bdb5e8c3f526
parent9ac549873d35626cd6d7718691aaf4c55f2667a7
target: re-use the command S/G list for single-task commands

If we only have a single task per command (which at least in my testing
is the by far most common case) we do not have to allocate a new per-task
S/G list but can reuse the one from the command.

(nab: Fix BIDI handling in transport_free_dev_tasks)

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