Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _MULTIPATH_H |
| 2 | #define _MULTIPATH_H |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | struct multipath_info { |
NeilBrown | 3cb0300 | 2011-10-11 16:45:26 +1100 | [diff] [blame] | 5 | struct md_rdev *rdev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | }; |
| 7 | |
NeilBrown | 69724e2 | 2011-10-11 16:48:57 +1100 | [diff] [blame] | 8 | struct mpconf { |
NeilBrown | fd01b88 | 2011-10-11 16:47:53 +1100 | [diff] [blame] | 9 | struct mddev *mddev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | struct multipath_info *multipaths; |
| 11 | int raid_disks; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | spinlock_t device_lock; |
| 13 | struct list_head retry_list; |
| 14 | |
| 15 | mempool_t *pool; |
| 16 | }; |
| 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
| 24 | struct multipath_bh { |
NeilBrown | fd01b88 | 2011-10-11 16:47:53 +1100 | [diff] [blame] | 25 | struct mddev *mddev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | struct bio *master_bio; |
| 27 | struct bio bio; |
| 28 | int path; |
| 29 | struct list_head retry_list; |
| 30 | }; |
| 31 | #endif |