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)
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>

No differences found