aboutsummaryrefslogtreecommitdiff
path: root/drivers/target/target_core_rd.h
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2013-05-11 16:16:49 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2013-05-11 16:22:39 -0700
commit52c07423a819091b0fe9abbf26977098b996f85b (patch)
treef67881445756abfe47ba8c59210419deff447d8e /drivers/target/target_core_rd.h
parent3eccfdb01da58fbd0f789ae6ca61cee3769e26de (diff)
target/rd: Add ramdisk bit for NULLIO operation
This patch adds a rd_nullio parameter that allows RAMDISK_MCP backends to function in NULLIO mode, where all se_cmd I/O is immediately completed in rd_execute_rw() without actually performing the SGL memory copy. This is useful for performance testing when the ramdisk SGL memory copy begins to eat lots of cycles during heavy small block workloads, so allow this bit to be enabled when necessary on a per rd_dev basis. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_rd.h')
-rw-r--r--drivers/target/target_core_rd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_rd.h b/drivers/target/target_core_rd.h
index 933b38b6e56..1789d1e1439 100644
--- a/drivers/target/target_core_rd.h
+++ b/drivers/target/target_core_rd.h
@@ -22,6 +22,7 @@ struct rd_dev_sg_table {
} ____cacheline_aligned;
#define RDF_HAS_PAGE_COUNT 0x01
+#define RDF_NULLIO 0x02
struct rd_dev {
struct se_device dev;