target: replace ->get_cdb with a target_get_task_cdb helper
authorChristoph Hellwig <hch@infradead.org>
Wed, 12 Oct 2011 15:09:12 +0000 (11:09 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:21:13 +0000 (03:21 +0000)
commit485fd0d1e3b8010b538bd0b209f3592acc825677
treea13b8785b9b24fcec032b9f28fd06597edae7256
parent6193f06e6fe27c9475e407cb3cf2b0d4cd2725b0
target: replace ->get_cdb with a target_get_task_cdb helper

Instead of calling out to the backends from the core to get a per-task
CDB and then modify it for the LBA/len pair used for this CDB provide
a helper that writes the adjusted CDB into a provided buffer and call
this method from ->do_task in pscsi.

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