]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70901497c93496a603ca06959fd6fee458b9cd14
tree97be6b877cd80489eb055ccf1dd0bdb5e8c3f526
parentdf3ca1d34c2a69f5efcece6eca7896c64f6a417c
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