]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target/rd: Allow WriteCacheEnabled=1 operation with rd_mcp backends
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 23 Aug 2012 01:53:12 +0000 (18:53 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 23 Aug 2012 02:20:37 +0000 (19:20 -0700)
commit038ade5c128412b77f728a705d924c8bdb92ed3e
tree82387c07cc9fd7fbcb306dd5c24b4b15e630f721
parent2e0bf0109c786b4734dc1508c8791ad48945e88c
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>
drivers/target/target_core_rd.c