Merge branch 'acpica'
[linux-2.6-block.git] / drivers / md / multipath.h
CommitLineData
1da177e4
LT
1#ifndef _MULTIPATH_H
2#define _MULTIPATH_H
3
1da177e4 4struct multipath_info {
3cb03002 5 struct md_rdev *rdev;
1da177e4
LT
6};
7
69724e28 8struct mpconf {
fd01b88c 9 struct mddev *mddev;
1da177e4
LT
10 struct multipath_info *multipaths;
11 int raid_disks;
1da177e4
LT
12 spinlock_t device_lock;
13 struct list_head retry_list;
14
15 mempool_t *pool;
16};
17
1da177e4
LT
18/*
19 * this is our 'private' 'collective' MULTIPATH buffer head.
20 * it contains information about what kind of IO operations were started
21 * for this MULTIPATH operation, and about their status:
22 */
23
24struct multipath_bh {
fd01b88c 25 struct mddev *mddev;
1da177e4
LT
26 struct bio *master_bio;
27 struct bio bio;
28 int path;
29 struct list_head retry_list;
30};
31#endif