aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2009-01-05 22:05:09 -0500
committerAlasdair G Kergon <agk@redhat.com>2009-01-05 22:05:09 -0500
commitab4c1424882be9cd70b89abf2b484add355712fa (patch)
tree8baed3606be67900df9f02e42fcdb091b78c5def /include/linux/device-mapper.h
parent7d76345da6ed3927c9cbf5d3f7a7021e8bba7374 (diff)
dm: support barriers on simple devices
Implement barrier support for single device DM devices This patch implements barrier support in DM for the common case of dm linear just remapping a single underlying device. In this case we can safely pass the barrier through because there can be no reordering between devices. NB. Any DM device might cease to support barriers if it gets reconfigured so code must continue to allow for a possible -EOPNOTSUPP on every barrier bio submitted. - agk Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index c1ba76c7c0e5..8209e08969f9 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -112,7 +112,14 @@ void dm_put_device(struct dm_target *ti, struct dm_dev *d);
112/* 112/*
113 * Information about a target type 113 * Information about a target type
114 */ 114 */
115
116/*
117 * Target features
118 */
119#define DM_TARGET_SUPPORTS_BARRIERS 0x00000001
120
115struct target_type { 121struct target_type {
122 uint64_t features;
116 const char *name; 123 const char *name;
117 struct module *module; 124 struct module *module;
118 unsigned version[3]; 125 unsigned version[3];