Blame view
drivers/md/multipath.h
611 Bytes
1da177e4c
|
1 2 |
#ifndef _MULTIPATH_H #define _MULTIPATH_H |
1da177e4c
|
3 |
struct multipath_info { |
3cb030020
|
4 |
struct md_rdev *rdev; |
1da177e4c
|
5 |
}; |
69724e28c
|
6 |
struct mpconf { |
fd01b88c7
|
7 |
struct mddev *mddev; |
1da177e4c
|
8 9 |
struct multipath_info *multipaths; int raid_disks; |
1da177e4c
|
10 11 12 13 14 |
spinlock_t device_lock; struct list_head retry_list; mempool_t *pool; }; |
1da177e4c
|
15 |
/* |
1da177e4c
|
16 17 18 19 20 21 |
* 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 { |
fd01b88c7
|
22 |
struct mddev *mddev; |
1da177e4c
|
23 24 25 26 27 28 |
struct bio *master_bio; struct bio bio; int path; struct list_head retry_list; }; #endif |