diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-08-26 16:35:58 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-09-17 20:13:34 -0400 |
commit | fd30e9310253235e88a4eaa38fa92439b56c220e (patch) | |
tree | eaa3c34f2c0baf84a407c92ff9d1f05b273e74fb /drivers/target/target_core_iblock.c | |
parent | 93d441a888c4aefd9f37b30911f8fefa27bdfda3 (diff) |
target: Drop se_subsystem_api->[write_cache,fua_write]_emulated flags
This patch drops se_subsystem_api->[write_cache,fua_write]_emulated flags
set by viritual FILEIO/IBLOCK/RD_MCP backend drivers in favor of explict
TRANSPORT_PLUGIN_PHBA_PDEV checks to know when to fail if userspace is
attempting to set virtual emulation bits for an pSCSI (passthrough)
backend device.
Reported-by: Christoph Hellwig <hch@lst.de>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_iblock.c')
-rw-r--r-- | drivers/target/target_core_iblock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index 0f6ece80bffe..5b745bb56a68 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c | |||
@@ -766,8 +766,6 @@ static struct se_subsystem_api iblock_template = { | |||
766 | .name = "iblock", | 766 | .name = "iblock", |
767 | .owner = THIS_MODULE, | 767 | .owner = THIS_MODULE, |
768 | .transport_type = TRANSPORT_PLUGIN_VHBA_PDEV, | 768 | .transport_type = TRANSPORT_PLUGIN_VHBA_PDEV, |
769 | .write_cache_emulated = 1, | ||
770 | .fua_write_emulated = 1, | ||
771 | .attach_hba = iblock_attach_hba, | 769 | .attach_hba = iblock_attach_hba, |
772 | .detach_hba = iblock_detach_hba, | 770 | .detach_hba = iblock_detach_hba, |
773 | .allocate_virtdevice = iblock_allocate_virtdevice, | 771 | .allocate_virtdevice = iblock_allocate_virtdevice, |