diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-12 11:09:11 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-10-24 03:21:11 +0000 |
commit | 6193f06e6fe27c9475e407cb3cf2b0d4cd2725b0 (patch) | |
tree | a876548f54088886ca0bbc084bb5c560175b5094 /drivers/target/target_core_file.c | |
parent | 3189b067eeae4646f3c7fa0ed0d14659a682baa8 (diff) | |
download | linux-6193f06e6fe27c9475e407cb3cf2b0d4cd2725b0.tar.gz linux-6193f06e6fe27c9475e407cb3cf2b0d4cd2725b0.tar.bz2 linux-6193f06e6fe27c9475e407cb3cf2b0d4cd2725b0.zip |
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>
Diffstat (limited to 'drivers/target/target_core_file.c')
-rw-r--r-- | drivers/target/target_core_file.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/target/target_core_file.c b/drivers/target/target_core_file.c index 524f41afea48..98aa5836448b 100644 --- a/drivers/target/target_core_file.c +++ b/drivers/target/target_core_file.c @@ -609,17 +609,6 @@ static ssize_t fd_show_configfs_dev_params( return bl; } -/* fd_get_cdb(): (Part of se_subsystem_api_t template) - * - * - */ -static unsigned char *fd_get_cdb(struct se_task *task) -{ - struct fd_request *req = FILE_REQ(task); - - return req->fd_scsi_cdb; -} - /* fd_get_device_rev(): (Part of se_subsystem_api_t template) * * @@ -667,7 +656,6 @@ static struct se_subsystem_api fileio_template = { .check_configfs_dev_params = fd_check_configfs_dev_params, .set_configfs_dev_params = fd_set_configfs_dev_params, .show_configfs_dev_params = fd_show_configfs_dev_params, - .get_cdb = fd_get_cdb, .get_device_rev = fd_get_device_rev, .get_device_type = fd_get_device_type, .get_blocks = fd_get_blocks, |