summaryrefslogtreecommitdiff
path: root/drivers/md/md-multipath.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2017-10-10 17:02:41 -0400
committerShaohua Li <shli@fb.com>2017-10-16 19:06:36 -0700
commit935fe0983e09f4f7331ebf5ea4ae2124f6e9f9e8 (patch)
treea3debe3ff3a5c4462b416f8992577d30c06a8a8a /drivers/md/md-multipath.h
parent584ed9fa9532f8b9d5955628ff87ee3b2ab9f5a9 (diff)
md: rename some drivers/md/ files to have an "md-" prefix
Motivated by the desire to illiminate the imprecise nature of DM-specific patches being unnecessarily sent to both the MD maintainer and mailing-list. Which is born out of the fact that DM files also reside in drivers/md/ Now all MD-specific files in drivers/md/ start with either "raid" or "md-" and the MAINTAINERS file has been updated accordingly. Shaohua: don't change module name Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md-multipath.h')
-rw-r--r--drivers/md/md-multipath.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/md/md-multipath.h b/drivers/md/md-multipath.h
new file mode 100644
index 000000000000..717c60f62898
--- /dev/null
+++ b/drivers/md/md-multipath.h
@@ -0,0 +1,31 @@
+#ifndef _MULTIPATH_H
+#define _MULTIPATH_H
+
+struct multipath_info {
+ struct md_rdev *rdev;
+};
+
+struct mpconf {
+ struct mddev *mddev;
+ struct multipath_info *multipaths;
+ int raid_disks;
+ spinlock_t device_lock;
+ struct list_head retry_list;
+
+ mempool_t *pool;
+};
+
+/*
+ * this is our 'private' 'collective' MULTIPATH buffer head.
+ * it contains information about what kind of IO operations were started
+ * for this MULTIPATH operation, and about their status:
+ */
+
+struct multipath_bh {
+ struct mddev *mddev;
+ struct bio *master_bio;
+ struct bio bio;
+ int path;
+ struct list_head retry_list;
+};
+#endif