]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94908ef19601c47f0431fc757576b0295625fac9
treea13b8785b9b24fcec032b9f28fd06597edae7256
parent68d68add8082084c264f8f63e0ed3225e0296bfe
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