target: make the ->get_cdb method optional
authorChristoph Hellwig <hch@infradead.org>
Wed, 12 Oct 2011 15:09:11 +0000 (11:09 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:21:11 +0000 (03:21 +0000)
commit6193f06e6fe27c9475e407cb3cf2b0d4cd2725b0
treea876548f54088886ca0bbc084bb5c560175b5094
parent3189b067eeae4646f3c7fa0ed0d14659a682baa8
target: make the ->get_cdb method optional

The most commonly used file, iblock and rd backends have no use for
a per-task CDB and thus don't need a method to copy it into their
otherwise unused CDB fields.

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