]> 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)
commitaa8283948e156e7d9b1d1247881d2fba008fb1cd
tree97be6b877cd80489eb055ccf1dd0bdb5e8c3f526
parentb29cf05decb00228fe4d318a6be9b43409ea1c77
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