diff options
author | Christoph Hellwig | 2012-10-10 23:37:14 +0200 |
---|---|---|
committer | Nicholas Bellinger | 2012-11-07 05:55:45 +0100 |
commit | 019c4ca621488739b1bfb7597a14ac7f0cbcc908 (patch) | |
tree | 2717b223b7a5d1fbd8765805879b87446ea98862 /drivers/target/target_core_device.c | |
parent | pscsi: fix REPORT LUNS handling (diff) | |
download | kernel-qcow2-linux-019c4ca621488739b1bfb7597a14ac7f0cbcc908.tar.gz kernel-qcow2-linux-019c4ca621488739b1bfb7597a14ac7f0cbcc908.tar.xz kernel-qcow2-linux-019c4ca621488739b1bfb7597a14ac7f0cbcc908.zip |
target: kill dev->dev_task_attr_type
We can just key off ordered tag emulation of the transport_type field.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r-- | drivers/target/target_core_device.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index e45a70970548..6a27e7fd33fb 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -1412,11 +1412,6 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name) dev->dev_attrib.fabric_max_sectors = DA_FABRIC_MAX_SECTORS; dev->dev_attrib.optimal_sectors = DA_FABRIC_MAX_SECTORS; - if (dev->transport->transport_type == TRANSPORT_PLUGIN_PHBA_PDEV) - dev->dev_task_attr_type = SAM_TASK_ATTR_PASSTHROUGH; - else - dev->dev_task_attr_type = SAM_TASK_ATTR_EMULATED; - return dev; } |