summaryrefslogtreecommitdiffstats
path: root/drivers/md/multipath.h
blob: 6fa70b400cdae6347fa07dedc2c80a5c16cabc90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _MULTIPATH_H
#define _MULTIPATH_H

struct multipath_info {
	mdk_rdev_t	*rdev;
};

struct multipath_private_data {
	mddev_t			*mddev;
	struct multipath_info	*multipaths;
	int			raid_disks;
	int			working_disks;
	spinlock_t		device_lock;
	struct list_head	retry_list;

	mempool_t		*pool;
};

typedef struct multipath_private_data multipath_conf_t;

/*
 * this is the only point in the RAID code where we violate
 * C type safety. mddev->private is an 'opaque' pointer.
 */
#define mddev_to_conf(mddev) ((multipath_conf_t *) mddev->private)

/*
 * 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 {
	mddev_t			*mddev;
	struct bio		*master_bio;
	struct bio		bio;
	int			path;
	struct list_head	retry_list;
};
#endif
aph'>| * \ \ \ \ \ Merge tag 'keys-fixes-20160412' of git://git.kernel.org/pub/scm/linux/kernel/...James Morris2016-04-132-2/+4 | |\ \ \ \ \ \ | | * | | | | | ASN.1: fix open failure check on headernameColin Ian King2016-04-061-1/+1 | | * | | | | | assoc_array: don't call compare_object() on a nodeJerome Marchand2016-04-061-1/+3 * | | | | | | | /proc/iomem: only expose physical resource addresses to privileged usersLinus Torvalds2016-04-141-2/+11 * | | | | | | | pci-sysfs: use proper file capability helper functionLinus Torvalds2016-04-141-1/+1 * | | | | | | | Make file credentials available to the seqfile interfacesLinus Torvalds2016-04-142-12/+8Star * | | | | | | | Revert "x86: remove the kernel code/data/bss resources from /proc/iomem"Linus Torvalds2016-04-141-0/+37 * | | | | | | | Merge tag 'sh-fixes-4.6-rc1' of git://git.libc.org/linux-shLinus Torvalds2016-04-134-10/+3Star |\ \ \ \ \ \ \ \ | * | | | | | | | sh: fix function signature of cpu_coregroup_mask to match pointer typeRich Felker2016-03-302-3/+3 | * | | | | | | | sh: fix smp-shx3 build regression from removal of arch localtimerRich Felker2016-03-302-7/+0Star | * | | | | | | | Merge tag 'v4.6-rc1'Rich Felker2016-03-29