diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-08-22 21:53:12 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-09-17 20:13:32 -0400 |
commit | a60fbbc446a75e077d6e20e0bdb32adfefbec569 (patch) | |
tree | f557a89cbcaf06f1f3d21c4daf9fb44167cadf06 /drivers/target | |
parent | 852b6ed110990891d21bf76b4f46a3c854866f67 (diff) |
target/rd: Allow WriteCacheEnabled=1 operation with rd_mcp backends
This patch adds the missing rd_mcp_template->write_cache_emulated=1 bit to
optionally allow WriteCacheEnabled=1 (WCE) to be enabled for the built-in
TCM/rd_mcp backend driver.
Tested on v3.6-rc[0,2] code with loopback+tcm_vhost fabric ports.
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_rd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_rd.c b/drivers/target/target_core_rd.c index d00bbe33ff8b..58bcc870366f 100644 --- a/drivers/target/target_core_rd.c +++ b/drivers/target/target_core_rd.c | |||
@@ -474,6 +474,7 @@ static int rd_parse_cdb(struct se_cmd *cmd) | |||
474 | static struct se_subsystem_api rd_mcp_template = { | 474 | static struct se_subsystem_api rd_mcp_template = { |
475 | .name = "rd_mcp", | 475 | .name = "rd_mcp", |
476 | .transport_type = TRANSPORT_PLUGIN_VHBA_VDEV, | 476 | .transport_type = TRANSPORT_PLUGIN_VHBA_VDEV, |
477 | .write_cache_emulated = 1, | ||
477 | .attach_hba = rd_attach_hba, | 478 | .attach_hba = rd_attach_hba, |
478 | .detach_hba = rd_detach_hba, | 479 | .detach_hba = rd_detach_hba, |
479 | .allocate_virtdevice = rd_allocate_virtdevice, | 480 | .allocate_virtdevice = rd_allocate_virtdevice, |